Comment by preg_match
1 day ago
It depends wildly on how one defines "slightly". If it overflows in the editor, then that's a problem IMO. But some people would say no. In PHP we often see this type of thing:
$someArr = [
'config' => [
'system' => 'linux',
...
],
];
Versus:
$someArr =
[
'config' =>
[
'system' => 'linux',
...
],
];
Well... option 2 uses both significantly more vertical space, and horizontal space. But it's technically PSR compliant. However, we really need standard formatting on this, because it's annoying.
No comments yet
Contribute on Hacker News ↗