Re: Breaking long lines
| From: | Arnaud Limbourg | 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: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.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,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...$aReallyLongArgumentName);?> (If you missed what I mean: the two spaces on the trailing line.)