If you concatenate strings like

$string = 'Foo' . $bar;

coder complains about to many spaces:

Line 2: string concatenation should be formatted without a space separating the operators (dot .) and a quote
  $string = 'Foo' . $bar;

But according to coding-standards spaces are required at this point:

"Always use a space between the dot and the concatenated parts to improve readability."

  $string = 'Foo' . $bar;
  $string = $bar . 'foo';
  $string = bar() . 'foo';
  $string = 'foo' . 'bar';

Comments

stella’s picture

Status: Active » Closed (duplicate)