Hi everyone,
I just have a quick question regarding the ZF coding style:
There's an 80 column line-length for code, so long method declarations/
calls will need to be wrapped. This much is clear.
However, what is convention as to how to indent method parameters
after wrapping? Should parameters be aligned, or should they just be
treated as a single long line?
For example, which of these would be correct:
$client = Zend_Gdata_ClientLogin::getHttpClient($user, $pass,
$service, null,
Zend_Gdata_ClientLogin::DEFAULT_SOURCE, null, null,
Zend_Gdata_ClientLogin::CLIENTLOGIN_URI, 'GOOGLE');
(That's 2x4 spaces on the wrapped lines, whether this is correct
indentation is also unclear from the style guide.)
or
$client = Zend_Gdata_ClientLogin::getHttpClient($user,
$pass,
$service,
null,
Zend_Gdata_ClientLogin::DEFAULT_SOURCE,
null,
null,
Zend_Gdata_ClientLogin::CLIENTLOGIN_URI,
'GOOGLE');
I've scanned over the ZF style guide at the below URL, but couldn't
find any information that clarified this, so any input from the
community would be appreciated.
http://framework.zend.com/manual/en/coding-standard.html
Thanks.
--
Trevor Johns
http://tjohns.net