{"action":"created","comment":{"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/comments/46963464","id":46963464,"diff_hunk":"@@ -26,18 +27,22 @@\n      * @var string[] List of statements to fix.\n      */\n     private static $controlStatements = array(\n-        'switch_case',\n+        'break',\n+        'continue',\n+        'clone',\n         'echo_print',\n         'return',\n-        'clone',\n+        'switch_case',\n         'yield',\n     );\n \n     private static $loops = array(\n-        'switch_case' => array('lookupTokens' => T_CASE, 'neededSuccessors' => array(';', ':')),\n+        'break' => array('lookupTokens' => T_BREAK, 'neededSuccessors' => array(';')),\n+        'continue' => array('lookupTokens' => T_CONTINUE, 'neededSuccessors' => array(';')),\n+        'clone' => array('lookupTokens' => T_CLONE, 'neededSuccessors' => array(';', ':', ',', ')')),\n         'echo_print' => array('lookupTokens' => array(T_ECHO, T_PRINT), 'neededSuccessors' => array(';', array(T_CLOSE_TAG))),\n         'return' => array('lookupTokens' => T_RETURN, 'neededSuccessors' => array(';')),\n-        'clone' => array('lookupTokens' => T_CLONE, 'neededSuccessors' => array(';', ':', ',', ')')),\n+        'switch_case' => array('lookupTokens' => T_CASE, 'neededSuccessors' => array(';', ':')),","path":"Symfony/CS/Fixer/Symfony/UnneededControlParenthesesFixer.php","position":31,"original_position":31,"commit_id":"2564576e799612aa137e905b37815e1817273def","original_commit_id":"2564576e799612aa137e905b37815e1817273def","user":{"login":"gharlan","id":330436,"avatar_url":"https://avatars.githubusercontent.com/u/330436?v=3","gravatar_id":"","url":"https://api.github.com/users/gharlan","html_url":"https://github.com/gharlan","followers_url":"https://api.github.com/users/gharlan/followers","following_url":"https://api.github.com/users/gharlan/following{/other_user}","gists_url":"https://api.github.com/users/gharlan/gists{/gist_id}","starred_url":"https://api.github.com/users/gharlan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gharlan/subscriptions","organizations_url":"https://api.github.com/users/gharlan/orgs","repos_url":"https://api.github.com/users/gharlan/repos","events_url":"https://api.github.com/users/gharlan/events{/privacy}","received_events_url":"https://api.github.com/users/gharlan/received_events","type":"User","site_admin":false},"body":"alphabetical order ;)","created_at":"2015-12-08T15:05:57Z","updated_at":"2015-12-08T15:05:57Z","html_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/1581#discussion_r46963464","pull_request_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/1581","_links":{"self":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/comments/46963464"},"html":{"href":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/1581#discussion_r46963464"},"pull_request":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/1581"}}},"pull_request":{"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/1581","id":52879540,"html_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/1581","diff_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/1581.diff","patch_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/1581.patch","issue_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/1581","number":1581,"state":"open","locked":false,"title":"UnneededControlParenthesesFixer - add `break` and `continue`","user":{"login":"gharlan","id":330436,"avatar_url":"https://avatars.githubusercontent.com/u/330436?v=3","gravatar_id":"","url":"https://api.github.com/users/gharlan","html_url":"https://github.com/gharlan","followers_url":"https://api.github.com/users/gharlan/followers","following_url":"https://api.github.com/users/gharlan/following{/other_user}","gists_url":"https://api.github.com/users/gharlan/gists{/gist_id}","starred_url":"https://api.github.com/users/gharlan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gharlan/subscriptions","organizations_url":"https://api.github.com/users/gharlan/orgs","repos_url":"https://api.github.com/users/gharlan/repos","events_url":"https://api.github.com/users/gharlan/events{/privacy}","received_events_url":"https://api.github.com/users/gharlan/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-07T18:07:11Z","updated_at":"2015-12-08T15:05:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f5d83dc3425187e456c15c01f813fb6fdf48c9c0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/1581/commits","review_comments_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/1581/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/1581/comments","statuses_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/statuses/2564576e799612aa137e905b37815e1817273def","head":{"label":"gharlan:ucpf-add-more-constrol-statements","ref":"ucpf-add-more-constrol-statements","sha":"2564576e799612aa137e905b37815e1817273def","user":{"login":"gharlan","id":330436,"avatar_url":"https://avatars.githubusercontent.com/u/330436?v=3","gravatar_id":"","url":"https://api.github.com/users/gharlan","html_url":"https://github.com/gharlan","followers_url":"https://api.github.com/users/gharlan/followers","following_url":"https://api.github.com/users/gharlan/following{/other_user}","gists_url":"https://api.github.com/users/gharlan/gists{/gist_id}","starred_url":"https://api.github.com/users/gharlan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gharlan/subscriptions","organizations_url":"https://api.github.com/users/gharlan/orgs","repos_url":"https://api.github.com/users/gharlan/repos","events_url":"https://api.github.com/users/gharlan/events{/privacy}","received_events_url":"https://api.github.com/users/gharlan/received_events","type":"User","site_admin":false},"repo":{"id":32235173,"name":"PHP-CS-Fixer","full_name":"gharlan/PHP-CS-Fixer","owner":{"login":"gharlan","id":330436,"avatar_url":"https://avatars.githubusercontent.com/u/330436?v=3","gravatar_id":"","url":"https://api.github.com/users/gharlan","html_url":"https://github.com/gharlan","followers_url":"https://api.github.com/users/gharlan/followers","following_url":"https://api.github.com/users/gharlan/following{/other_user}","gists_url":"https://api.github.com/users/gharlan/gists{/gist_id}","starred_url":"https://api.github.com/users/gharlan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gharlan/subscriptions","organizations_url":"https://api.github.com/users/gharlan/orgs","repos_url":"https://api.github.com/users/gharlan/repos","events_url":"https://api.github.com/users/gharlan/events{/privacy}","received_events_url":"https://api.github.com/users/gharlan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gharlan/PHP-CS-Fixer","description":"Analyzes some PHP source code and tries to fix coding standards issues (PSR-1 and PSR-2 compatible)","fork":true,"url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer","forks_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/forks","keys_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/teams","hooks_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/hooks","issue_events_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/issues/events{/number}","events_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/events","assignees_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/assignees{/user}","branches_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/branches{/branch}","tags_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/tags","blobs_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/git/refs{/sha}","trees_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/statuses/{sha}","languages_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/languages","stargazers_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/stargazers","contributors_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/contributors","subscribers_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/subscribers","subscription_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/subscription","commits_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/commits{/sha}","git_commits_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/git/commits{/sha}","comments_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/comments{/number}","issue_comment_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/issues/comments{/number}","contents_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/contents/{+path}","compare_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/merges","archive_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/downloads","issues_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/issues{/number}","pulls_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/pulls{/number}","milestones_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/milestones{/number}","notifications_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/labels{/name}","releases_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/releases{/id}","created_at":"2015-03-14T22:30:32Z","updated_at":"2015-03-14T22:30:33Z","pushed_at":"2015-12-07T18:31:17Z","git_url":"git://github.com/gharlan/PHP-CS-Fixer.git","ssh_url":"git@github.com:gharlan/PHP-CS-Fixer.git","clone_url":"https://github.com/gharlan/PHP-CS-Fixer.git","svn_url":"https://github.com/gharlan/PHP-CS-Fixer","homepage":"cs.sensiolabs.org","size":2941,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"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:1.12","ref":"1.12","sha":"c3ff5fd8515f6a8b90374e36c5ed1cb79e98daa0","user":{"login":"FriendsOfPHP","id":5947812,"avatar_url":"https://avatars.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://avatars.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":"Analyzes some PHP source code and tries to fix coding standards issues (PSR-1 and PSR-2 compatible)","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}","created_at":"2012-05-16T06:42:23Z","updated_at":"2015-12-08T07:16:06Z","pushed_at":"2015-12-07T21:22:24Z","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":"cs.sensiolabs.org","size":6684,"stargazers_count":2743,"watchers_count":2743,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":434,"mirror_url":null,"open_issues_count":88,"forks":434,"open_issues":88,"watchers":2743,"default_branch":"1.12"}},"_links":{"self":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/1581"},"html":{"href":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/1581"},"issue":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/1581"},"comments":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/1581/comments"},"review_comments":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/1581/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/1581/commits"},"statuses":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/statuses/2564576e799612aa137e905b37815e1817273def"}}}}