This awful but valid php:

if ($a) $b = f($c) . $d;

will get "fixed" by coder-format as:

if ($a) $b = f($c) {
  . $d;
}

...which is not valid php.

Comments

matt2000’s picture

Issue summary: View changes

Clarify issue by removing inconsequential line break.

matt2000’s picture

Issue summary: View changes

Code sample updated to something some programmer might actually try to do right before pissing me off.

klausi’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Coder format is frozen and will not receive updates. Please use the phpcbf command with Coder 8.x-2.x instead. It can be used to format code for any Drupal version.