Given code like this

$a = array(1,
2,
3,               
);

coder_format.php outputs code like this

$a = array(1,
  2,
  3,
);

whereas the coding standard expects code like this

$a = array(
  1,
  2,
  3,
);

Comments

TwoMice’s picture

Status: Active » Needs review
StatusFileSize
new1.34 KB

This patch makes a first attempt at fixing this, by adding a postprocessor specifically for the task.

solotandem’s picture

klausi’s picture

Issue summary: View changes
Status: Needs review » 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.