Re: Breaking long lines

From: Date: Mon, 13 Feb 2006 09:43:52 +0000
Subject: Re: Breaking long lines
References: 1 2  Groups: php.pear.qa 
Request: Send a blank email to pear-qa+get-3472@lists.php.net to get a copy of this message
Alan Knowles wrote:
Ludvig Ericson wrote:
Hi, I'm just wondering - I'm not really fond of breaking PHP lines in weird places because the PEAR standards tell me to do so. Do I still have to? And is this acceptable if so: <?php $aReallyLongVariableName = aReallyLongFunction(A_REALLY_LONG_CONSTANT,
     $aReallyLongArgumentName);
?> (If you missed what I mean: the two spaces on the trailing line.)
Usually better to wrap to somewhere sensible..: ....$aReallyLongVariableName = aReallyLongFunction( ........A_REALLY_LONG_CONSTANT, ........$aReallyLongVar ....); indents should be a factor of 4 spaces (As per CS) - as long as the continuation is indented I guess it follows CS, technically...
That is what I tend to do, I find it much more readable that way. I guess we could add that as an example to the manual. Arnaud.

« previous php.pear.qa (#3472) next »