{"action":"created","issue":{"url":"https://api.github.com/repos/php-fig/fig-standards/issues/542","repository_url":"https://api.github.com/repos/php-fig/fig-standards","labels_url":"https://api.github.com/repos/php-fig/fig-standards/issues/542/labels{/name}","comments_url":"https://api.github.com/repos/php-fig/fig-standards/issues/542/comments","events_url":"https://api.github.com/repos/php-fig/fig-standards/issues/542/events","html_url":"https://github.com/php-fig/fig-standards/issues/542","id":71991346,"number":542,"title":"A question on multiline chained method calls and more...","user":{"login":"pine3ree","id":3229979,"avatar_url":"https://avatars.githubusercontent.com/u/3229979?v=3","gravatar_id":"","url":"https://api.github.com/users/pine3ree","html_url":"https://github.com/pine3ree","followers_url":"https://api.github.com/users/pine3ree/followers","following_url":"https://api.github.com/users/pine3ree/following{/other_user}","gists_url":"https://api.github.com/users/pine3ree/gists{/gist_id}","starred_url":"https://api.github.com/users/pine3ree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pine3ree/subscriptions","organizations_url":"https://api.github.com/users/pine3ree/orgs","repos_url":"https://api.github.com/users/pine3ree/repos","events_url":"https://api.github.com/users/pine3ree/events{/privacy}","received_events_url":"https://api.github.com/users/pine3ree/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-04-29T21:15:34Z","updated_at":"2016-02-15T14:20:27Z","closed_at":"2016-02-15T14:20:27Z","body":"I like to use the following formats:\r\n```php\r\n$users = $userMapper\r\n    ->sort($sorter)\r\n    ->paginate($paginator)\r\n    ->find()\r\n;\r\n//...\r\n$user = $id > 0\r\n    ? $userMapper->findById($id) //imagine this longer\r\n    : null\r\n;\r\n```\r\n\r\nhaving the \";\" on the next line makes me think about control blocks opening and closing structure. Basically the semicolon on the first column of next line makes me think of it as a closing a block of related operation, wether multiple method calls or ternary expression.\r\n```\r\nif (true) {\r\n    //doSomheting();\r\n}\r\n```\r\n\r\nIs this (semicolon on next line) acceptable by PSR-2? I cannot find any reference about it\r\n\r\nkind regards\r\n"},"comment":{"url":"https://api.github.com/repos/php-fig/fig-standards/issues/comments/184226586","html_url":"https://github.com/php-fig/fig-standards/issues/542#issuecomment-184226586","issue_url":"https://api.github.com/repos/php-fig/fig-standards/issues/542","id":184226586,"user":{"login":"michaelcullum","id":211740,"avatar_url":"https://avatars.githubusercontent.com/u/211740?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelcullum","html_url":"https://github.com/michaelcullum","followers_url":"https://api.github.com/users/michaelcullum/followers","following_url":"https://api.github.com/users/michaelcullum/following{/other_user}","gists_url":"https://api.github.com/users/michaelcullum/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelcullum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelcullum/subscriptions","organizations_url":"https://api.github.com/users/michaelcullum/orgs","repos_url":"https://api.github.com/users/michaelcullum/repos","events_url":"https://api.github.com/users/michaelcullum/events{/privacy}","received_events_url":"https://api.github.com/users/michaelcullum/received_events","type":"User","site_admin":false},"created_at":"2016-02-15T14:20:27Z","updated_at":"2016-02-15T14:20:27Z","body":"This is not covered in PSR-2 which is final. If you think this deserves clarification in PSR-12 feel free to suggest it on the mailing list."}}