#47321 [Opn->Csd]: (trivial) Consistency in type juggling examples

From: Date: Fri, 06 Feb 2009 11:37:55 +0000
Subject: #47321 [Opn->Csd]: (trivial) Consistency in type juggling examples
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-1807@lists.php.net to get a copy of this message
ID: 47321 Updated by: rquadling@php.net Reported By: php at webchick dot net -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: N/A PHP Version: Irrelevant New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2009-02-06 00:27:49] php at boombatower dot com Consistent code standards = nice ------------------------------------------------------------------------ [2009-02-06 00:22:57] news at unleashedmind dot com Don't get us wrong, please. This is a real issue or us, as we're trying to settle with a coding-standard for this syntax. ------------------------------------------------------------------------ [2009-02-06 00:14:55] php at webchick dot net Description: ------------ This is *incredibly* trivial, but... ;) In the type casting section of the "Type Juggling" page http://us.php.net/manual/en/language.types.type-juggling.php, there are four examples of how to do casting with (type): <?php $bar = (boolean) $foo; ... $foo = (int) $bar; ... $binary = (binary)$string; ... $fst = (string) $foo; ?> Is it possible to change "(binary)$string;" to "(binary) $string;" (with a space) so that it is consistent with the other examples? This came about because we were discussing Drupal's coding standards at http://groups.drupal.org/coding-standards-and-best-practices and we were looking to PHP.net for guidance. The guidance is pretty clear, except for this one inconsistency. My inner neat-freak thanks you. :) Reproduce code: --------------- N/A Expected result: ---------------- N/A Actual result: -------------- N/A ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=47321&edit=1

« previous php.doc.bugs (#1807) next »