DCS gives me no way to break a long line at an operator. Pretend that
$foo = $bar + $baz;
is too long. According to http://drupal.org/coding-standards#linelength I should try to keep most lines under 80 characters. I usually break after the operator:
$foo = $bar +
$baz;
but PAReview.sh complains that | ERROR | An operator statement must be followed by a single space. My reading of the Drupal coding standards is that a newline should count as a space, but I am willing to take Code Sniffer's advice. So I tried
$foo = $bar
+ $baz;
Now, I get the message | ERROR | There must be a single space before an operator statement. This seems stricter than the advice at http://drupal.org/coding-standards#operators ("single space" instead of "a space") but again I am willing to go along. However, I think an exception should be made for multiple spaces at the beginning of a line.
Comments
Comment #1
klausiThanks for the report, fixed in http://drupalcode.org/project/drupalcs.git/commit/9fff1e2