{"action":"opened","issue":{"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/1397","labels_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/1397/labels{/name}","comments_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/1397/comments","events_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/1397/events","html_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/1397","id":106268330,"number":1397,"title":"PSR2 fixer is incomplete with respect to argument lists","user":{"login":"mxr","id":252209,"avatar_url":"https://avatars.githubusercontent.com/u/252209?v=3","gravatar_id":"","url":"https://api.github.com/users/mxr","html_url":"https://github.com/mxr","followers_url":"https://api.github.com/users/mxr/followers","following_url":"https://api.github.com/users/mxr/following{/other_user}","gists_url":"https://api.github.com/users/mxr/gists{/gist_id}","starred_url":"https://api.github.com/users/mxr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mxr/subscriptions","organizations_url":"https://api.github.com/users/mxr/orgs","repos_url":"https://api.github.com/users/mxr/repos","events_url":"https://api.github.com/users/mxr/events{/privacy}","received_events_url":"https://api.github.com/users/mxr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-14T04:12:45Z","updated_at":"2015-09-14T04:12:45Z","closed_at":null,"body":"I believe the PSR2 fixer does not implement PSR2 completely - is that a known issue, or a bug?\r\n\r\nOne example is that function arguments should either all be on one line, or all on separate lines ([§ 4.4](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md#44-method-arguments), [§  4.6](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md#46-method-and-function-calls)). For the following code:\r\n\r\n```php\r\n<?php\r\n\r\nfunction bar($a,\r\n    $b, $c)\r\n{\r\n    print_r($a);\r\n    print_r($b);\r\n    print_r($c);\r\n}\r\n\r\n\r\nbar(1,\r\n    2, 3);\r\n```\r\n\r\nthe command `php-cs-fixer fix example.php --level=psr2` leaves the code untouched. However I would expect it to output each argument on a new line (since some are already on a new line) as follows:\r\n\r\n```php\r\n<?php\r\n\r\nfunction bar(\r\n    $a,\r\n    $b,\r\n    $c\r\n) {\r\n    print_r($a);\r\n    print_r($b);\r\n    print_r($c);\r\n}\r\n\r\n\r\nbar(\r\n    1,\r\n    2,\r\n    3\r\n);\r\n```\r\n\r\nI'm using version 1.10."}}