symplify/coding-standard

Sniff tip: prefer multiline key-based arrays

TomasVotruba opened this issue · 1 comments

No

$array = [1 => 'one', 2 => 'two', 3 => 'three', 4 => 'four'];

Yes!

$array = [
    1 => 'one',
    2 => 'two',
    3 => 'three',
    4 => 'four'
];

Probably solved in php-cs-fixer