{"action":"created","comment":{"url":"https://api.github.com/repos/actcat/sideci_php_sandbox/pulls/comments/26931063","id":26931063,"diff_hunk":"@@ -74,3 +115,44 @@ public function display() {\n \t\t}\n \t}\n }\n+\n+/**\n+ * CyclomaticComplexity\n+ */\n+// Cyclomatic Complexity = 12\n+class Foo {\n+    public function example()  {\n+        if ($a == $b)  {\n+            if ($a1 == $b1) {\n+                fiddle();\n+            } else if ($a2 == $b2) {\n+                fiddle();\n+            }  else {\n+                fiddle();\n+            }\n+        } else if ($c == $d) {\n+            while ($c == $d) {\n+                fiddle();\n+            }\n+         } else if ($e == $f) {","path":"app/Controller/PagesController.php","position":78,"original_position":78,"commit_id":"4517fd1dc83601af0096f7ac679f59fd18b65bf6","original_commit_id":"4517fd1dc83601af0096f7ac679f59fd18b65bf6","user":{"login":"sumyapp","id":491508,"avatar_url":"https://avatars.githubusercontent.com/u/491508?v=3","gravatar_id":"","url":"https://api.github.com/users/sumyapp","html_url":"https://github.com/sumyapp","followers_url":"https://api.github.com/users/sumyapp/followers","following_url":"https://api.github.com/users/sumyapp/following{/other_user}","gists_url":"https://api.github.com/users/sumyapp/gists{/gist_id}","starred_url":"https://api.github.com/users/sumyapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumyapp/subscriptions","organizations_url":"https://api.github.com/users/sumyapp/orgs","repos_url":"https://api.github.com/users/sumyapp/repos","events_url":"https://api.github.com/users/sumyapp/events{/privacy}","received_events_url":"https://api.github.com/users/sumyapp/received_events","type":"User","site_admin":false},"body":"[staging] [code_sniffer] Usage of ELSE IF is discouraged; use ELSEIF instead","created_at":"2015-03-23T12:09:28Z","updated_at":"2015-03-23T12:09:28Z","html_url":"https://github.com/actcat/sideci_php_sandbox/pull/9#discussion_r26931063","pull_request_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/actcat/sideci_php_sandbox/pulls/comments/26931063"},"html":{"href":"https://github.com/actcat/sideci_php_sandbox/pull/9#discussion_r26931063"},"pull_request":{"href":"https://api.github.com/repos/actcat/sideci_php_sandbox/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/actcat/sideci_php_sandbox/pulls/9","id":31725820,"html_url":"https://github.com/actcat/sideci_php_sandbox/pull/9","diff_url":"https://github.com/actcat/sideci_php_sandbox/pull/9.diff","patch_url":"https://github.com/actcat/sideci_php_sandbox/pull/9.patch","issue_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/issues/9","number":9,"state":"open","locked":false,"title":"Debug/20150323 service verify phpmd prod","user":{"login":"sumyapp","id":491508,"avatar_url":"https://avatars.githubusercontent.com/u/491508?v=3","gravatar_id":"","url":"https://api.github.com/users/sumyapp","html_url":"https://github.com/sumyapp","followers_url":"https://api.github.com/users/sumyapp/followers","following_url":"https://api.github.com/users/sumyapp/following{/other_user}","gists_url":"https://api.github.com/users/sumyapp/gists{/gist_id}","starred_url":"https://api.github.com/users/sumyapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumyapp/subscriptions","organizations_url":"https://api.github.com/users/sumyapp/orgs","repos_url":"https://api.github.com/users/sumyapp/repos","events_url":"https://api.github.com/users/sumyapp/events{/privacy}","received_events_url":"https://api.github.com/users/sumyapp/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-23T12:03:03Z","updated_at":"2015-03-23T12:09:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0f890a339d3cd2dfffae838551049dc1da2999c7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/pulls/9/commits","review_comments_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/pulls/9/comments","review_comment_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/pulls/comments{/number}","comments_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/issues/9/comments","statuses_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/statuses/4517fd1dc83601af0096f7ac679f59fd18b65bf6","head":{"label":"actcat:debug/20150323_service_verify_phpmd_prod","ref":"debug/20150323_service_verify_phpmd_prod","sha":"4517fd1dc83601af0096f7ac679f59fd18b65bf6","user":{"login":"actcat","id":5653312,"avatar_url":"https://avatars.githubusercontent.com/u/5653312?v=3","gravatar_id":"","url":"https://api.github.com/users/actcat","html_url":"https://github.com/actcat","followers_url":"https://api.github.com/users/actcat/followers","following_url":"https://api.github.com/users/actcat/following{/other_user}","gists_url":"https://api.github.com/users/actcat/gists{/gist_id}","starred_url":"https://api.github.com/users/actcat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/actcat/subscriptions","organizations_url":"https://api.github.com/users/actcat/orgs","repos_url":"https://api.github.com/users/actcat/repos","events_url":"https://api.github.com/users/actcat/events{/privacy}","received_events_url":"https://api.github.com/users/actcat/received_events","type":"Organization","site_admin":false},"repo":{"id":31297639,"name":"sideci_php_sandbox","full_name":"actcat/sideci_php_sandbox","owner":{"login":"actcat","id":5653312,"avatar_url":"https://avatars.githubusercontent.com/u/5653312?v=3","gravatar_id":"","url":"https://api.github.com/users/actcat","html_url":"https://github.com/actcat","followers_url":"https://api.github.com/users/actcat/followers","following_url":"https://api.github.com/users/actcat/following{/other_user}","gists_url":"https://api.github.com/users/actcat/gists{/gist_id}","starred_url":"https://api.github.com/users/actcat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/actcat/subscriptions","organizations_url":"https://api.github.com/users/actcat/orgs","repos_url":"https://api.github.com/users/actcat/repos","events_url":"https://api.github.com/users/actcat/events{/privacy}","received_events_url":"https://api.github.com/users/actcat/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/actcat/sideci_php_sandbox","description":"","fork":false,"url":"https://api.github.com/repos/actcat/sideci_php_sandbox","forks_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/forks","keys_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/teams","hooks_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/hooks","issue_events_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/issues/events{/number}","events_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/events","assignees_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/assignees{/user}","branches_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/branches{/branch}","tags_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/tags","blobs_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/git/refs{/sha}","trees_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/statuses/{sha}","languages_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/languages","stargazers_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/stargazers","contributors_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/contributors","subscribers_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/subscribers","subscription_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/subscription","commits_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/commits{/sha}","git_commits_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/git/commits{/sha}","comments_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/comments{/number}","issue_comment_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/issues/comments{/number}","contents_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/contents/{+path}","compare_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/merges","archive_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/downloads","issues_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/issues{/number}","pulls_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/pulls{/number}","milestones_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/milestones{/number}","notifications_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/labels{/name}","releases_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/releases{/id}","created_at":"2015-02-25T04:45:36Z","updated_at":"2015-02-25T04:48:53Z","pushed_at":"2015-03-23T12:03:03Z","git_url":"git://github.com/actcat/sideci_php_sandbox.git","ssh_url":"git@github.com:actcat/sideci_php_sandbox.git","clone_url":"https://github.com/actcat/sideci_php_sandbox.git","svn_url":"https://github.com/actcat/sideci_php_sandbox","homepage":null,"size":1896,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"actcat:master","ref":"master","sha":"ec2b17fde1eb9b1a4ec5bb96ef231ed697227234","user":{"login":"actcat","id":5653312,"avatar_url":"https://avatars.githubusercontent.com/u/5653312?v=3","gravatar_id":"","url":"https://api.github.com/users/actcat","html_url":"https://github.com/actcat","followers_url":"https://api.github.com/users/actcat/followers","following_url":"https://api.github.com/users/actcat/following{/other_user}","gists_url":"https://api.github.com/users/actcat/gists{/gist_id}","starred_url":"https://api.github.com/users/actcat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/actcat/subscriptions","organizations_url":"https://api.github.com/users/actcat/orgs","repos_url":"https://api.github.com/users/actcat/repos","events_url":"https://api.github.com/users/actcat/events{/privacy}","received_events_url":"https://api.github.com/users/actcat/received_events","type":"Organization","site_admin":false},"repo":{"id":31297639,"name":"sideci_php_sandbox","full_name":"actcat/sideci_php_sandbox","owner":{"login":"actcat","id":5653312,"avatar_url":"https://avatars.githubusercontent.com/u/5653312?v=3","gravatar_id":"","url":"https://api.github.com/users/actcat","html_url":"https://github.com/actcat","followers_url":"https://api.github.com/users/actcat/followers","following_url":"https://api.github.com/users/actcat/following{/other_user}","gists_url":"https://api.github.com/users/actcat/gists{/gist_id}","starred_url":"https://api.github.com/users/actcat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/actcat/subscriptions","organizations_url":"https://api.github.com/users/actcat/orgs","repos_url":"https://api.github.com/users/actcat/repos","events_url":"https://api.github.com/users/actcat/events{/privacy}","received_events_url":"https://api.github.com/users/actcat/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/actcat/sideci_php_sandbox","description":"","fork":false,"url":"https://api.github.com/repos/actcat/sideci_php_sandbox","forks_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/forks","keys_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/teams","hooks_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/hooks","issue_events_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/issues/events{/number}","events_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/events","assignees_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/assignees{/user}","branches_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/branches{/branch}","tags_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/tags","blobs_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/git/refs{/sha}","trees_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/statuses/{sha}","languages_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/languages","stargazers_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/stargazers","contributors_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/contributors","subscribers_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/subscribers","subscription_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/subscription","commits_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/commits{/sha}","git_commits_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/git/commits{/sha}","comments_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/comments{/number}","issue_comment_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/issues/comments{/number}","contents_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/contents/{+path}","compare_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/merges","archive_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/downloads","issues_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/issues{/number}","pulls_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/pulls{/number}","milestones_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/milestones{/number}","notifications_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/labels{/name}","releases_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/releases{/id}","created_at":"2015-02-25T04:45:36Z","updated_at":"2015-02-25T04:48:53Z","pushed_at":"2015-03-23T12:03:03Z","git_url":"git://github.com/actcat/sideci_php_sandbox.git","ssh_url":"git@github.com:actcat/sideci_php_sandbox.git","clone_url":"https://github.com/actcat/sideci_php_sandbox.git","svn_url":"https://github.com/actcat/sideci_php_sandbox","homepage":null,"size":1896,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/actcat/sideci_php_sandbox/pulls/9"},"html":{"href":"https://github.com/actcat/sideci_php_sandbox/pull/9"},"issue":{"href":"https://api.github.com/repos/actcat/sideci_php_sandbox/issues/9"},"comments":{"href":"https://api.github.com/repos/actcat/sideci_php_sandbox/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/actcat/sideci_php_sandbox/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/actcat/sideci_php_sandbox/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/actcat/sideci_php_sandbox/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/actcat/sideci_php_sandbox/statuses/4517fd1dc83601af0096f7ac679f59fd18b65bf6"}}}}