{"action":"created","comment":{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/pulls/comments/23135417","id":23135417,"diff_hunk":"@@ -285,3 +285,21 @@ switch ($foo) {\n     break;\n \n }\n+\n+// Correct Multi line breaking statement with return.\n+switch ($foo) {\n+    case 1:\n+    return array(","path":"CodeSniffer/Standards/Squiz/Tests/ControlStructures/SwitchDeclarationUnitTest.inc","position":8,"original_position":8,"commit_id":"a400b7803dcb74604b61ecc87981cfa7c3cd14d6","original_commit_id":"a400b7803dcb74604b61ecc87981cfa7c3cd14d6","user":{"login":"klausi","id":213229,"avatar_url":"https://avatars.githubusercontent.com/u/213229?v=3","gravatar_id":"","url":"https://api.github.com/users/klausi","html_url":"https://github.com/klausi","followers_url":"https://api.github.com/users/klausi/followers","following_url":"https://api.github.com/users/klausi/following{/other_user}","gists_url":"https://api.github.com/users/klausi/gists{/gist_id}","starred_url":"https://api.github.com/users/klausi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klausi/subscriptions","organizations_url":"https://api.github.com/users/klausi/orgs","repos_url":"https://api.github.com/users/klausi/repos","events_url":"https://api.github.com/users/klausi/events{/privacy}","received_events_url":"https://api.github.com/users/klausi/received_events","type":"User","site_admin":false},"body":"Nope, this should be fine as is in the Squiz standard.","created_at":"2015-01-18T18:15:15Z","updated_at":"2015-01-18T18:15:15Z","html_url":"https://github.com/squizlabs/PHP_CodeSniffer/pull/443#discussion_r23135417","pull_request_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/pulls/443","_links":{"self":{"href":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/pulls/comments/23135417"},"html":{"href":"https://github.com/squizlabs/PHP_CodeSniffer/pull/443#discussion_r23135417"},"pull_request":{"href":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/pulls/443"}}},"pull_request":{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/pulls/443","id":27558790,"html_url":"https://github.com/squizlabs/PHP_CodeSniffer/pull/443","diff_url":"https://github.com/squizlabs/PHP_CodeSniffer/pull/443.diff","patch_url":"https://github.com/squizlabs/PHP_CodeSniffer/pull/443.patch","issue_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/443","number":443,"state":"open","locked":false,"title":"Fixed false positives in switch() with multi-line return statements.","user":{"login":"klausi","id":213229,"avatar_url":"https://avatars.githubusercontent.com/u/213229?v=3","gravatar_id":"","url":"https://api.github.com/users/klausi","html_url":"https://github.com/klausi","followers_url":"https://api.github.com/users/klausi/followers","following_url":"https://api.github.com/users/klausi/following{/other_user}","gists_url":"https://api.github.com/users/klausi/gists{/gist_id}","starred_url":"https://api.github.com/users/klausi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klausi/subscriptions","organizations_url":"https://api.github.com/users/klausi/orgs","repos_url":"https://api.github.com/users/klausi/repos","events_url":"https://api.github.com/users/klausi/events{/privacy}","received_events_url":"https://api.github.com/users/klausi/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-17T16:42:23Z","updated_at":"2015-01-18T18:15:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7e997e3c7d96accc444e2af448867aa3c0722267","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/pulls/443/commits","review_comments_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/pulls/443/comments","review_comment_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/pulls/comments/{number}","comments_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/443/comments","statuses_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/statuses/a400b7803dcb74604b61ecc87981cfa7c3cd14d6","head":{"label":"klausi:switch-return","ref":"switch-return","sha":"a400b7803dcb74604b61ecc87981cfa7c3cd14d6","user":{"login":"klausi","id":213229,"avatar_url":"https://avatars.githubusercontent.com/u/213229?v=3","gravatar_id":"","url":"https://api.github.com/users/klausi","html_url":"https://github.com/klausi","followers_url":"https://api.github.com/users/klausi/followers","following_url":"https://api.github.com/users/klausi/following{/other_user}","gists_url":"https://api.github.com/users/klausi/gists{/gist_id}","starred_url":"https://api.github.com/users/klausi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klausi/subscriptions","organizations_url":"https://api.github.com/users/klausi/orgs","repos_url":"https://api.github.com/users/klausi/repos","events_url":"https://api.github.com/users/klausi/events{/privacy}","received_events_url":"https://api.github.com/users/klausi/received_events","type":"User","site_admin":false},"repo":{"id":5023030,"name":"PHP_CodeSniffer","full_name":"klausi/PHP_CodeSniffer","owner":{"login":"klausi","id":213229,"avatar_url":"https://avatars.githubusercontent.com/u/213229?v=3","gravatar_id":"","url":"https://api.github.com/users/klausi","html_url":"https://github.com/klausi","followers_url":"https://api.github.com/users/klausi/followers","following_url":"https://api.github.com/users/klausi/following{/other_user}","gists_url":"https://api.github.com/users/klausi/gists{/gist_id}","starred_url":"https://api.github.com/users/klausi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klausi/subscriptions","organizations_url":"https://api.github.com/users/klausi/orgs","repos_url":"https://api.github.com/users/klausi/repos","events_url":"https://api.github.com/users/klausi/events{/privacy}","received_events_url":"https://api.github.com/users/klausi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/klausi/PHP_CodeSniffer","description":"PHP_CodeSniffer tokenises PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.","fork":true,"url":"https://api.github.com/repos/klausi/PHP_CodeSniffer","forks_url":"https://api.github.com/repos/klausi/PHP_CodeSniffer/forks","keys_url":"https://api.github.com/repos/klausi/PHP_CodeSniffer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/klausi/PHP_CodeSniffer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/klausi/PHP_CodeSniffer/teams","hooks_url":"https://api.github.com/repos/klausi/PHP_CodeSniffer/hooks","issue_events_url":"https://api.github.com/repos/klausi/PHP_CodeSniffer/issues/events{/number}","events_url":"https://api.github.com/repos/klausi/PHP_CodeSniffer/events","assignees_url":"https://api.github.com/repos/klausi/PHP_CodeSniffer/assignees{/user}","branches_url":"https://api.github.com/repos/klausi/PHP_CodeSniffer/branches{/branch}","tags_url":"https://api.github.com/repos/klausi/PHP_CodeSniffer/tags","blobs_url":"https://api.github.com/repos/klausi/PHP_CodeSniffer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/klausi/PHP_CodeSniffer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/klausi/PHP_CodeSniffer/git/refs{/sha}","trees_url":"https://api.github.com/repos/klausi/PHP_CodeSniffer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/klausi/PHP_CodeSniffer/statuses/{sha}","languages_url":"https://api.github.com/repos/klausi/PHP_CodeSniffer/languages","stargazers_url":"https://api.github.com/repos/klausi/PHP_CodeSniffer/stargazers","contributors_url":"https://api.github.com/repos/klausi/PHP_CodeSniffer/contributors","subscribers_url":"https://api.github.com/repos/klausi/PHP_CodeSniffer/subscribers","subscription_url":"https://api.github.com/repos/klausi/PHP_CodeSniffer/subscription","commits_url":"https://api.github.com/repos/klausi/PHP_CodeSniffer/commits{/sha}","git_commits_url":"https://api.github.com/repos/klausi/PHP_CodeSniffer/git/commits{/sha}","comments_url":"https://api.github.com/repos/klausi/PHP_CodeSniffer/comments{/number}","issue_comment_url":"https://api.github.com/repos/klausi/PHP_CodeSniffer/issues/comments/{number}","contents_url":"https://api.github.com/repos/klausi/PHP_CodeSniffer/contents/{+path}","compare_url":"https://api.github.com/repos/klausi/PHP_CodeSniffer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/klausi/PHP_CodeSniffer/merges","archive_url":"https://api.github.com/repos/klausi/PHP_CodeSniffer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/klausi/PHP_CodeSniffer/downloads","issues_url":"https://api.github.com/repos/klausi/PHP_CodeSniffer/issues{/number}","pulls_url":"https://api.github.com/repos/klausi/PHP_CodeSniffer/pulls{/number}","milestones_url":"https://api.github.com/repos/klausi/PHP_CodeSniffer/milestones{/number}","notifications_url":"https://api.github.com/repos/klausi/PHP_CodeSniffer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/klausi/PHP_CodeSniffer/labels{/name}","releases_url":"https://api.github.com/repos/klausi/PHP_CodeSniffer/releases{/id}","created_at":"2012-07-13T18:03:43Z","updated_at":"2014-04-08T03:22:53Z","pushed_at":"2015-01-17T16:41:48Z","git_url":"git://github.com/klausi/PHP_CodeSniffer.git","ssh_url":"git@github.com:klausi/PHP_CodeSniffer.git","clone_url":"https://github.com/klausi/PHP_CodeSniffer.git","svn_url":"https://github.com/klausi/PHP_CodeSniffer","homepage":"http://pear.php.net/package/PHP_CodeSniffer","size":11157,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"master"}},"base":{"label":"squizlabs:master","ref":"master","sha":"65c8d2da98c1c86bfb5589a0f9264c043dde93ab","user":{"login":"squizlabs","id":997547,"avatar_url":"https://avatars.githubusercontent.com/u/997547?v=3","gravatar_id":"","url":"https://api.github.com/users/squizlabs","html_url":"https://github.com/squizlabs","followers_url":"https://api.github.com/users/squizlabs/followers","following_url":"https://api.github.com/users/squizlabs/following{/other_user}","gists_url":"https://api.github.com/users/squizlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/squizlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/squizlabs/subscriptions","organizations_url":"https://api.github.com/users/squizlabs/orgs","repos_url":"https://api.github.com/users/squizlabs/repos","events_url":"https://api.github.com/users/squizlabs/events{/privacy}","received_events_url":"https://api.github.com/users/squizlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":2699935,"name":"PHP_CodeSniffer","full_name":"squizlabs/PHP_CodeSniffer","owner":{"login":"squizlabs","id":997547,"avatar_url":"https://avatars.githubusercontent.com/u/997547?v=3","gravatar_id":"","url":"https://api.github.com/users/squizlabs","html_url":"https://github.com/squizlabs","followers_url":"https://api.github.com/users/squizlabs/followers","following_url":"https://api.github.com/users/squizlabs/following{/other_user}","gists_url":"https://api.github.com/users/squizlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/squizlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/squizlabs/subscriptions","organizations_url":"https://api.github.com/users/squizlabs/orgs","repos_url":"https://api.github.com/users/squizlabs/repos","events_url":"https://api.github.com/users/squizlabs/events{/privacy}","received_events_url":"https://api.github.com/users/squizlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/squizlabs/PHP_CodeSniffer","description":"PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.","fork":false,"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer","forks_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/forks","keys_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/teams","hooks_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/hooks","issue_events_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/events{/number}","events_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/events","assignees_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/assignees{/user}","branches_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/branches{/branch}","tags_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/tags","blobs_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/git/refs{/sha}","trees_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/statuses/{sha}","languages_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/languages","stargazers_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/stargazers","contributors_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/contributors","subscribers_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/subscribers","subscription_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/subscription","commits_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/commits{/sha}","git_commits_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/git/commits{/sha}","comments_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/comments{/number}","issue_comment_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/comments/{number}","contents_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/contents/{+path}","compare_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/merges","archive_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/downloads","issues_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues{/number}","pulls_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/pulls{/number}","milestones_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/milestones{/number}","notifications_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/labels{/name}","releases_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/releases{/id}","created_at":"2011-11-03T04:06:24Z","updated_at":"2015-01-18T15:39:18Z","pushed_at":"2015-01-16T05:00:49Z","git_url":"git://github.com/squizlabs/PHP_CodeSniffer.git","ssh_url":"git@github.com:squizlabs/PHP_CodeSniffer.git","clone_url":"https://github.com/squizlabs/PHP_CodeSniffer.git","svn_url":"https://github.com/squizlabs/PHP_CodeSniffer","homepage":"http://pear.php.net/package/PHP_CodeSniffer","size":99240,"stargazers_count":1128,"watchers_count":1128,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":317,"mirror_url":null,"open_issues_count":27,"forks":317,"open_issues":27,"watchers":1128,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/pulls/443"},"html":{"href":"https://github.com/squizlabs/PHP_CodeSniffer/pull/443"},"issue":{"href":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/443"},"comments":{"href":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/443/comments"},"review_comments":{"href":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/pulls/443/comments"},"review_comment":{"href":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/pulls/443/commits"},"statuses":{"href":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/statuses/a400b7803dcb74604b61ecc87981cfa7c3cd14d6"}}}}