[dev] line continuation coding standard?

Jan Schneider jan at horde.org
Thu Mar 8 08:53:20 UTC 2007


Zitat von Chuck Hagenbuch <chuck at horde.org>:

> Quoting Matt Selsky <selsky at columbia.edu>:
>
>> When a concatenated string spans multiple lines, where is the '.'
>> supposed to go?
>>
>> $foo = 'bar' .
>>      'baz';
>>
>> or
>>
>> $foo = 'bar'
>>      . 'baz';
>>
>> I didn't see this in the CODING_STANDARDS doc...
>
> I've been using the latter recently. I don't yet have a strong opinion
> on it and we don't have a rule for it.

Same here. I used to put it at the end, but changed to put it at the  
front recently, because it lines up more nicely and makes it a visible  
continuation on the first sight.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the dev mailing list