{"action":"created","comment":{"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/comments/120004527","pull_request_review_id":41935903,"id":120004527,"diff_hunk":"@@ -128,13 +128,17 @@ public function getRequirement($name)\n         if (!is_string($name)) {\n             throw new \\InvalidArgumentException(sprintf(\n                 'Requirement key must be a string, got \"%s\".',\n-                is_object($name) ? get_class($name) : gettype($name).'#'.$name));\n+                is_object($name) ? get_class($name) : gettype($name).'#'.$name\n+            ));\n         }\n \n         if (!array_key_exists($name, $this->requirements)) {\n-            throw new \\InvalidArgumentException(sprintf(\n+            throw new \\InvalidArgumentException(\n+                sprintf(\n                 'Unknown requirement key \"%s\", expected any of \"%s\".',\n-                $name, implode('\",\"', array_keys($this->requirements)))\n+                $name,\n+                implode('\",\"', array_keys($this->requirements))\n+            )","path":"src/Test/IntegrationCase.php","position":17,"original_position":17,"commit_id":"fdad51679e597dd7c4c83a6ab686d1a7311632c6","original_commit_id":"fdad51679e597dd7c4c83a6ab686d1a7311632c6","user":{"login":"julienfalque","id":1736542,"avatar_url":"https://avatars2.githubusercontent.com/u/1736542?v=3","gravatar_id":"","url":"https://api.github.com/users/julienfalque","html_url":"https://github.com/julienfalque","followers_url":"https://api.github.com/users/julienfalque/followers","following_url":"https://api.github.com/users/julienfalque/following{/other_user}","gists_url":"https://api.github.com/users/julienfalque/gists{/gist_id}","starred_url":"https://api.github.com/users/julienfalque/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julienfalque/subscriptions","organizations_url":"https://api.github.com/users/julienfalque/orgs","repos_url":"https://api.github.com/users/julienfalque/repos","events_url":"https://api.github.com/users/julienfalque/events{/privacy}","received_events_url":"https://api.github.com/users/julienfalque/received_events","type":"User","site_admin":false},"body":"The `sprintf(` part should remain on the same line as before so that indentation stays valid. Then both closing parentheses would be on the same line too. Same for similar changes in other files.","created_at":"2017-06-04T09:01:22Z","updated_at":"2017-06-04T09:15:37Z","html_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/2440#discussion_r120004527","pull_request_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/2440","_links":{"self":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/comments/120004527"},"html":{"href":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/2440#discussion_r120004527"},"pull_request":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/2440"}}},"pull_request":{"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/2440","id":99808954,"html_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/2440","diff_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/2440.diff","patch_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/2440.patch","issue_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/2440","number":2440,"state":"open","locked":false,"title":"add fix line endings feature to the method argument fixer","user":{"login":"greg0ire","id":657779,"avatar_url":"https://avatars2.githubusercontent.com/u/657779?v=3","gravatar_id":"","url":"https://api.github.com/users/greg0ire","html_url":"https://github.com/greg0ire","followers_url":"https://api.github.com/users/greg0ire/followers","following_url":"https://api.github.com/users/greg0ire/following{/other_user}","gists_url":"https://api.github.com/users/greg0ire/gists{/gist_id}","starred_url":"https://api.github.com/users/greg0ire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greg0ire/subscriptions","organizations_url":"https://api.github.com/users/greg0ire/orgs","repos_url":"https://api.github.com/users/greg0ire/repos","events_url":"https://api.github.com/users/greg0ire/events{/privacy}","received_events_url":"https://api.github.com/users/greg0ire/received_events","type":"User","site_admin":false},"body":"Todo : \r\n\r\n- [x] fix broken tests\r\n- [x] add more test cases\r\n    - [x] for indented methods (currently indention is hardcoded and not preserved)\r\n    - [x] for multiline arguments\r\n        - [x] for multiline array arguments\r\n        - [x] for multiline function arguments\r\n    - [x] for fix needed near opening parenthesis\r\n    - [x] for fix needed near closing parenthesis\r\n    - [x] for different OS line endings\r\n    - [x] for different indention chars\r\n    - [x] for different indention levels\r\n    - [x] for nested arrays\r\n- [x] make the fixer optional","created_at":"2016-12-31T17:23:30Z","updated_at":"2017-06-04T09:15:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"736f6c0b1e417770a8c565ccda185f7625757d48","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/2440/commits","review_comments_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/2440/comments","review_comment_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/2440/comments","statuses_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/statuses/fdad51679e597dd7c4c83a6ab686d1a7311632c6","head":{"label":"greg0ire:newline_argument_fixer","ref":"newline_argument_fixer","sha":"fdad51679e597dd7c4c83a6ab686d1a7311632c6","user":{"login":"greg0ire","id":657779,"avatar_url":"https://avatars2.githubusercontent.com/u/657779?v=3","gravatar_id":"","url":"https://api.github.com/users/greg0ire","html_url":"https://github.com/greg0ire","followers_url":"https://api.github.com/users/greg0ire/followers","following_url":"https://api.github.com/users/greg0ire/following{/other_user}","gists_url":"https://api.github.com/users/greg0ire/gists{/gist_id}","starred_url":"https://api.github.com/users/greg0ire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greg0ire/subscriptions","organizations_url":"https://api.github.com/users/greg0ire/orgs","repos_url":"https://api.github.com/users/greg0ire/repos","events_url":"https://api.github.com/users/greg0ire/events{/privacy}","received_events_url":"https://api.github.com/users/greg0ire/received_events","type":"User","site_admin":false},"repo":{"id":77696687,"name":"PHP-CS-Fixer","full_name":"greg0ire/PHP-CS-Fixer","owner":{"login":"greg0ire","id":657779,"avatar_url":"https://avatars2.githubusercontent.com/u/657779?v=3","gravatar_id":"","url":"https://api.github.com/users/greg0ire","html_url":"https://github.com/greg0ire","followers_url":"https://api.github.com/users/greg0ire/followers","following_url":"https://api.github.com/users/greg0ire/following{/other_user}","gists_url":"https://api.github.com/users/greg0ire/gists{/gist_id}","starred_url":"https://api.github.com/users/greg0ire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greg0ire/subscriptions","organizations_url":"https://api.github.com/users/greg0ire/orgs","repos_url":"https://api.github.com/users/greg0ire/repos","events_url":"https://api.github.com/users/greg0ire/events{/privacy}","received_events_url":"https://api.github.com/users/greg0ire/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/greg0ire/PHP-CS-Fixer","description":"A tool to automatically fix PHP coding standards issues","fork":true,"url":"https://api.github.com/repos/greg0ire/PHP-CS-Fixer","forks_url":"https://api.github.com/repos/greg0ire/PHP-CS-Fixer/forks","keys_url":"https://api.github.com/repos/greg0ire/PHP-CS-Fixer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/greg0ire/PHP-CS-Fixer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/greg0ire/PHP-CS-Fixer/teams","hooks_url":"https://api.github.com/repos/greg0ire/PHP-CS-Fixer/hooks","issue_events_url":"https://api.github.com/repos/greg0ire/PHP-CS-Fixer/issues/events{/number}","events_url":"https://api.github.com/repos/greg0ire/PHP-CS-Fixer/events","assignees_url":"https://api.github.com/repos/greg0ire/PHP-CS-Fixer/assignees{/user}","branches_url":"https://api.github.com/repos/greg0ire/PHP-CS-Fixer/branches{/branch}","tags_url":"https://api.github.com/repos/greg0ire/PHP-CS-Fixer/tags","blobs_url":"https://api.github.com/repos/greg0ire/PHP-CS-Fixer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/greg0ire/PHP-CS-Fixer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/greg0ire/PHP-CS-Fixer/git/refs{/sha}","trees_url":"https://api.github.com/repos/greg0ire/PHP-CS-Fixer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/greg0ire/PHP-CS-Fixer/statuses/{sha}","languages_url":"https://api.github.com/repos/greg0ire/PHP-CS-Fixer/languages","stargazers_url":"https://api.github.com/repos/greg0ire/PHP-CS-Fixer/stargazers","contributors_url":"https://api.github.com/repos/greg0ire/PHP-CS-Fixer/contributors","subscribers_url":"https://api.github.com/repos/greg0ire/PHP-CS-Fixer/subscribers","subscription_url":"https://api.github.com/repos/greg0ire/PHP-CS-Fixer/subscription","commits_url":"https://api.github.com/repos/greg0ire/PHP-CS-Fixer/commits{/sha}","git_commits_url":"https://api.github.com/repos/greg0ire/PHP-CS-Fixer/git/commits{/sha}","comments_url":"https://api.github.com/repos/greg0ire/PHP-CS-Fixer/comments{/number}","issue_comment_url":"https://api.github.com/repos/greg0ire/PHP-CS-Fixer/issues/comments{/number}","contents_url":"https://api.github.com/repos/greg0ire/PHP-CS-Fixer/contents/{+path}","compare_url":"https://api.github.com/repos/greg0ire/PHP-CS-Fixer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/greg0ire/PHP-CS-Fixer/merges","archive_url":"https://api.github.com/repos/greg0ire/PHP-CS-Fixer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/greg0ire/PHP-CS-Fixer/downloads","issues_url":"https://api.github.com/repos/greg0ire/PHP-CS-Fixer/issues{/number}","pulls_url":"https://api.github.com/repos/greg0ire/PHP-CS-Fixer/pulls{/number}","milestones_url":"https://api.github.com/repos/greg0ire/PHP-CS-Fixer/milestones{/number}","notifications_url":"https://api.github.com/repos/greg0ire/PHP-CS-Fixer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/greg0ire/PHP-CS-Fixer/labels{/name}","releases_url":"https://api.github.com/repos/greg0ire/PHP-CS-Fixer/releases{/id}","deployments_url":"https://api.github.com/repos/greg0ire/PHP-CS-Fixer/deployments","created_at":"2016-12-30T16:11:18Z","updated_at":"2016-12-30T16:11:22Z","pushed_at":"2017-06-03T17:24:00Z","git_url":"git://github.com/greg0ire/PHP-CS-Fixer.git","ssh_url":"git@github.com:greg0ire/PHP-CS-Fixer.git","clone_url":"https://github.com/greg0ire/PHP-CS-Fixer.git","svn_url":"https://github.com/greg0ire/PHP-CS-Fixer","homepage":"http://cs.sensiolabs.org","size":8499,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"FriendsOfPHP:master","ref":"master","sha":"4649ba92f0515834555f76dce60a05edfd856b0d","user":{"login":"FriendsOfPHP","id":5947812,"avatar_url":"https://avatars3.githubusercontent.com/u/5947812?v=3","gravatar_id":"","url":"https://api.github.com/users/FriendsOfPHP","html_url":"https://github.com/FriendsOfPHP","followers_url":"https://api.github.com/users/FriendsOfPHP/followers","following_url":"https://api.github.com/users/FriendsOfPHP/following{/other_user}","gists_url":"https://api.github.com/users/FriendsOfPHP/gists{/gist_id}","starred_url":"https://api.github.com/users/FriendsOfPHP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FriendsOfPHP/subscriptions","organizations_url":"https://api.github.com/users/FriendsOfPHP/orgs","repos_url":"https://api.github.com/users/FriendsOfPHP/repos","events_url":"https://api.github.com/users/FriendsOfPHP/events{/privacy}","received_events_url":"https://api.github.com/users/FriendsOfPHP/received_events","type":"Organization","site_admin":false},"repo":{"id":4344257,"name":"PHP-CS-Fixer","full_name":"FriendsOfPHP/PHP-CS-Fixer","owner":{"login":"FriendsOfPHP","id":5947812,"avatar_url":"https://avatars3.githubusercontent.com/u/5947812?v=3","gravatar_id":"","url":"https://api.github.com/users/FriendsOfPHP","html_url":"https://github.com/FriendsOfPHP","followers_url":"https://api.github.com/users/FriendsOfPHP/followers","following_url":"https://api.github.com/users/FriendsOfPHP/following{/other_user}","gists_url":"https://api.github.com/users/FriendsOfPHP/gists{/gist_id}","starred_url":"https://api.github.com/users/FriendsOfPHP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FriendsOfPHP/subscriptions","organizations_url":"https://api.github.com/users/FriendsOfPHP/orgs","repos_url":"https://api.github.com/users/FriendsOfPHP/repos","events_url":"https://api.github.com/users/FriendsOfPHP/events{/privacy}","received_events_url":"https://api.github.com/users/FriendsOfPHP/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer","description":"A tool to automatically fix PHP coding standards issues","fork":false,"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer","forks_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/forks","keys_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/teams","hooks_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/hooks","issue_events_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/events{/number}","events_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/events","assignees_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/assignees{/user}","branches_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/branches{/branch}","tags_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/tags","blobs_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/git/refs{/sha}","trees_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/statuses/{sha}","languages_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/languages","stargazers_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/stargazers","contributors_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/contributors","subscribers_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/subscribers","subscription_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/subscription","commits_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/commits{/sha}","git_commits_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/git/commits{/sha}","comments_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/comments{/number}","issue_comment_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/comments{/number}","contents_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/contents/{+path}","compare_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/merges","archive_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/downloads","issues_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues{/number}","pulls_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls{/number}","milestones_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/milestones{/number}","notifications_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/labels{/name}","releases_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/releases{/id}","deployments_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/deployments","created_at":"2012-05-16T06:42:23Z","updated_at":"2017-06-02T19:58:30Z","pushed_at":"2017-06-03T17:24:02Z","git_url":"git://github.com/FriendsOfPHP/PHP-CS-Fixer.git","ssh_url":"git@github.com:FriendsOfPHP/PHP-CS-Fixer.git","clone_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer.git","svn_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer","homepage":"http://cs.sensiolabs.org","size":9212,"stargazers_count":4520,"watchers_count":4520,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":698,"mirror_url":null,"open_issues_count":154,"forks":698,"open_issues":154,"watchers":4520,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/2440"},"html":{"href":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/2440"},"issue":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/2440"},"comments":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/2440/comments"},"review_comments":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/2440/comments"},"review_comment":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/2440/commits"},"statuses":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/statuses/fdad51679e597dd7c4c83a6ab686d1a7311632c6"}}}}
{"actor":{"display_login":"julienfalque"}}