{"action":"created","comment":{"url":"https://api.github.com/repos/BambooHR/guardrail/pulls/comments/121202883","pull_request_review_id":43239462,"id":121202883,"diff_hunk":"@@ -38,10 +41,10 @@ public function getCheckNodeTypes() {\n \tstatic public function containsConstructorCall(array $stmts = null) {\n \t\t$found = false;\n \t\tForEachNode::run($stmts, function (Node $node) use (&$found) {\n-\t\t\tif ($node instanceof Node\\Expr\\StaticCall) {\n+\t\t\tif ($node instanceof StaticCall) {","path":"src/Checks/ConstructorCheck.php","position":31,"original_position":31,"commit_id":"714ff47bce00963aa6ce43e6b0ef578bbef8b1d9","original_commit_id":"714ff47bce00963aa6ce43e6b0ef578bbef8b1d9","user":{"login":"cdburgess","id":216284,"avatar_url":"https://avatars1.githubusercontent.com/u/216284?v=3","gravatar_id":"","url":"https://api.github.com/users/cdburgess","html_url":"https://github.com/cdburgess","followers_url":"https://api.github.com/users/cdburgess/followers","following_url":"https://api.github.com/users/cdburgess/following{/other_user}","gists_url":"https://api.github.com/users/cdburgess/gists{/gist_id}","starred_url":"https://api.github.com/users/cdburgess/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdburgess/subscriptions","organizations_url":"https://api.github.com/users/cdburgess/orgs","repos_url":"https://api.github.com/users/cdburgess/repos","events_url":"https://api.github.com/users/cdburgess/events{/privacy}","received_events_url":"https://api.github.com/users/cdburgess/received_events","type":"User","site_admin":false},"body":"This is broken. Please don't merge.","created_at":"2017-06-09T19:14:40Z","updated_at":"2017-06-09T19:14:40Z","html_url":"https://github.com/BambooHR/guardrail/pull/27#discussion_r121202883","pull_request_url":"https://api.github.com/repos/BambooHR/guardrail/pulls/27","_links":{"self":{"href":"https://api.github.com/repos/BambooHR/guardrail/pulls/comments/121202883"},"html":{"href":"https://github.com/BambooHR/guardrail/pull/27#discussion_r121202883"},"pull_request":{"href":"https://api.github.com/repos/BambooHR/guardrail/pulls/27"}}},"pull_request":{"url":"https://api.github.com/repos/BambooHR/guardrail/pulls/27","id":124909941,"html_url":"https://github.com/BambooHR/guardrail/pull/27","diff_url":"https://github.com/BambooHR/guardrail/pull/27.diff","patch_url":"https://github.com/BambooHR/guardrail/pull/27.patch","issue_url":"https://api.github.com/repos/BambooHR/guardrail/issues/27","number":27,"state":"open","locked":false,"title":"Test Constructor Check","user":{"login":"cdburgess","id":216284,"avatar_url":"https://avatars1.githubusercontent.com/u/216284?v=3","gravatar_id":"","url":"https://api.github.com/users/cdburgess","html_url":"https://github.com/cdburgess","followers_url":"https://api.github.com/users/cdburgess/followers","following_url":"https://api.github.com/users/cdburgess/following{/other_user}","gists_url":"https://api.github.com/users/cdburgess/gists{/gist_id}","starred_url":"https://api.github.com/users/cdburgess/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdburgess/subscriptions","organizations_url":"https://api.github.com/users/cdburgess/orgs","repos_url":"https://api.github.com/users/cdburgess/repos","events_url":"https://api.github.com/users/cdburgess/events{/privacy}","received_events_url":"https://api.github.com/users/cdburgess/received_events","type":"User","site_admin":false},"body":"- adding the tests to test the constructor checks\n- updating the ConstructorCheck to make sure all classes are imported\nand using use statements","created_at":"2017-06-09T16:58:14Z","updated_at":"2017-06-09T19:14:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0eb0e1e6bec41a18dcc4d5fb39484d220ffbb995","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/BambooHR/guardrail/pulls/27/commits","review_comments_url":"https://api.github.com/repos/BambooHR/guardrail/pulls/27/comments","review_comment_url":"https://api.github.com/repos/BambooHR/guardrail/pulls/comments{/number}","comments_url":"https://api.github.com/repos/BambooHR/guardrail/issues/27/comments","statuses_url":"https://api.github.com/repos/BambooHR/guardrail/statuses/714ff47bce00963aa6ce43e6b0ef578bbef8b1d9","head":{"label":"BambooHR:CB/TestConstructorCheck","ref":"CB/TestConstructorCheck","sha":"714ff47bce00963aa6ce43e6b0ef578bbef8b1d9","user":{"login":"BambooHR","id":5740925,"avatar_url":"https://avatars3.githubusercontent.com/u/5740925?v=3","gravatar_id":"","url":"https://api.github.com/users/BambooHR","html_url":"https://github.com/BambooHR","followers_url":"https://api.github.com/users/BambooHR/followers","following_url":"https://api.github.com/users/BambooHR/following{/other_user}","gists_url":"https://api.github.com/users/BambooHR/gists{/gist_id}","starred_url":"https://api.github.com/users/BambooHR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BambooHR/subscriptions","organizations_url":"https://api.github.com/users/BambooHR/orgs","repos_url":"https://api.github.com/users/BambooHR/repos","events_url":"https://api.github.com/users/BambooHR/events{/privacy}","received_events_url":"https://api.github.com/users/BambooHR/received_events","type":"Organization","site_admin":false},"repo":{"id":89721572,"name":"guardrail","full_name":"BambooHR/guardrail","owner":{"login":"BambooHR","id":5740925,"avatar_url":"https://avatars3.githubusercontent.com/u/5740925?v=3","gravatar_id":"","url":"https://api.github.com/users/BambooHR","html_url":"https://github.com/BambooHR","followers_url":"https://api.github.com/users/BambooHR/followers","following_url":"https://api.github.com/users/BambooHR/following{/other_user}","gists_url":"https://api.github.com/users/BambooHR/gists{/gist_id}","starred_url":"https://api.github.com/users/BambooHR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BambooHR/subscriptions","organizations_url":"https://api.github.com/users/BambooHR/orgs","repos_url":"https://api.github.com/users/BambooHR/repos","events_url":"https://api.github.com/users/BambooHR/events{/privacy}","received_events_url":"https://api.github.com/users/BambooHR/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BambooHR/guardrail","description":"BambooHR's home grown PHP Static Analysis tool","fork":false,"url":"https://api.github.com/repos/BambooHR/guardrail","forks_url":"https://api.github.com/repos/BambooHR/guardrail/forks","keys_url":"https://api.github.com/repos/BambooHR/guardrail/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BambooHR/guardrail/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BambooHR/guardrail/teams","hooks_url":"https://api.github.com/repos/BambooHR/guardrail/hooks","issue_events_url":"https://api.github.com/repos/BambooHR/guardrail/issues/events{/number}","events_url":"https://api.github.com/repos/BambooHR/guardrail/events","assignees_url":"https://api.github.com/repos/BambooHR/guardrail/assignees{/user}","branches_url":"https://api.github.com/repos/BambooHR/guardrail/branches{/branch}","tags_url":"https://api.github.com/repos/BambooHR/guardrail/tags","blobs_url":"https://api.github.com/repos/BambooHR/guardrail/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BambooHR/guardrail/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BambooHR/guardrail/git/refs{/sha}","trees_url":"https://api.github.com/repos/BambooHR/guardrail/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BambooHR/guardrail/statuses/{sha}","languages_url":"https://api.github.com/repos/BambooHR/guardrail/languages","stargazers_url":"https://api.github.com/repos/BambooHR/guardrail/stargazers","contributors_url":"https://api.github.com/repos/BambooHR/guardrail/contributors","subscribers_url":"https://api.github.com/repos/BambooHR/guardrail/subscribers","subscription_url":"https://api.github.com/repos/BambooHR/guardrail/subscription","commits_url":"https://api.github.com/repos/BambooHR/guardrail/commits{/sha}","git_commits_url":"https://api.github.com/repos/BambooHR/guardrail/git/commits{/sha}","comments_url":"https://api.github.com/repos/BambooHR/guardrail/comments{/number}","issue_comment_url":"https://api.github.com/repos/BambooHR/guardrail/issues/comments{/number}","contents_url":"https://api.github.com/repos/BambooHR/guardrail/contents/{+path}","compare_url":"https://api.github.com/repos/BambooHR/guardrail/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BambooHR/guardrail/merges","archive_url":"https://api.github.com/repos/BambooHR/guardrail/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BambooHR/guardrail/downloads","issues_url":"https://api.github.com/repos/BambooHR/guardrail/issues{/number}","pulls_url":"https://api.github.com/repos/BambooHR/guardrail/pulls{/number}","milestones_url":"https://api.github.com/repos/BambooHR/guardrail/milestones{/number}","notifications_url":"https://api.github.com/repos/BambooHR/guardrail/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BambooHR/guardrail/labels{/name}","releases_url":"https://api.github.com/repos/BambooHR/guardrail/releases{/id}","deployments_url":"https://api.github.com/repos/BambooHR/guardrail/deployments","created_at":"2017-04-28T15:53:19Z","updated_at":"2017-04-28T23:12:01Z","pushed_at":"2017-06-09T19:12:31Z","git_url":"git://github.com/BambooHR/guardrail.git","ssh_url":"git@github.com:BambooHR/guardrail.git","clone_url":"https://github.com/BambooHR/guardrail.git","svn_url":"https://github.com/BambooHR/guardrail","homepage":null,"size":241,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"BambooHR:master","ref":"master","sha":"49a0db61dc929b29f8e52adda0278535e863c60f","user":{"login":"BambooHR","id":5740925,"avatar_url":"https://avatars3.githubusercontent.com/u/5740925?v=3","gravatar_id":"","url":"https://api.github.com/users/BambooHR","html_url":"https://github.com/BambooHR","followers_url":"https://api.github.com/users/BambooHR/followers","following_url":"https://api.github.com/users/BambooHR/following{/other_user}","gists_url":"https://api.github.com/users/BambooHR/gists{/gist_id}","starred_url":"https://api.github.com/users/BambooHR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BambooHR/subscriptions","organizations_url":"https://api.github.com/users/BambooHR/orgs","repos_url":"https://api.github.com/users/BambooHR/repos","events_url":"https://api.github.com/users/BambooHR/events{/privacy}","received_events_url":"https://api.github.com/users/BambooHR/received_events","type":"Organization","site_admin":false},"repo":{"id":89721572,"name":"guardrail","full_name":"BambooHR/guardrail","owner":{"login":"BambooHR","id":5740925,"avatar_url":"https://avatars3.githubusercontent.com/u/5740925?v=3","gravatar_id":"","url":"https://api.github.com/users/BambooHR","html_url":"https://github.com/BambooHR","followers_url":"https://api.github.com/users/BambooHR/followers","following_url":"https://api.github.com/users/BambooHR/following{/other_user}","gists_url":"https://api.github.com/users/BambooHR/gists{/gist_id}","starred_url":"https://api.github.com/users/BambooHR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BambooHR/subscriptions","organizations_url":"https://api.github.com/users/BambooHR/orgs","repos_url":"https://api.github.com/users/BambooHR/repos","events_url":"https://api.github.com/users/BambooHR/events{/privacy}","received_events_url":"https://api.github.com/users/BambooHR/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BambooHR/guardrail","description":"BambooHR's home grown PHP Static Analysis tool","fork":false,"url":"https://api.github.com/repos/BambooHR/guardrail","forks_url":"https://api.github.com/repos/BambooHR/guardrail/forks","keys_url":"https://api.github.com/repos/BambooHR/guardrail/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BambooHR/guardrail/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BambooHR/guardrail/teams","hooks_url":"https://api.github.com/repos/BambooHR/guardrail/hooks","issue_events_url":"https://api.github.com/repos/BambooHR/guardrail/issues/events{/number}","events_url":"https://api.github.com/repos/BambooHR/guardrail/events","assignees_url":"https://api.github.com/repos/BambooHR/guardrail/assignees{/user}","branches_url":"https://api.github.com/repos/BambooHR/guardrail/branches{/branch}","tags_url":"https://api.github.com/repos/BambooHR/guardrail/tags","blobs_url":"https://api.github.com/repos/BambooHR/guardrail/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BambooHR/guardrail/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BambooHR/guardrail/git/refs{/sha}","trees_url":"https://api.github.com/repos/BambooHR/guardrail/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BambooHR/guardrail/statuses/{sha}","languages_url":"https://api.github.com/repos/BambooHR/guardrail/languages","stargazers_url":"https://api.github.com/repos/BambooHR/guardrail/stargazers","contributors_url":"https://api.github.com/repos/BambooHR/guardrail/contributors","subscribers_url":"https://api.github.com/repos/BambooHR/guardrail/subscribers","subscription_url":"https://api.github.com/repos/BambooHR/guardrail/subscription","commits_url":"https://api.github.com/repos/BambooHR/guardrail/commits{/sha}","git_commits_url":"https://api.github.com/repos/BambooHR/guardrail/git/commits{/sha}","comments_url":"https://api.github.com/repos/BambooHR/guardrail/comments{/number}","issue_comment_url":"https://api.github.com/repos/BambooHR/guardrail/issues/comments{/number}","contents_url":"https://api.github.com/repos/BambooHR/guardrail/contents/{+path}","compare_url":"https://api.github.com/repos/BambooHR/guardrail/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BambooHR/guardrail/merges","archive_url":"https://api.github.com/repos/BambooHR/guardrail/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BambooHR/guardrail/downloads","issues_url":"https://api.github.com/repos/BambooHR/guardrail/issues{/number}","pulls_url":"https://api.github.com/repos/BambooHR/guardrail/pulls{/number}","milestones_url":"https://api.github.com/repos/BambooHR/guardrail/milestones{/number}","notifications_url":"https://api.github.com/repos/BambooHR/guardrail/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BambooHR/guardrail/labels{/name}","releases_url":"https://api.github.com/repos/BambooHR/guardrail/releases{/id}","deployments_url":"https://api.github.com/repos/BambooHR/guardrail/deployments","created_at":"2017-04-28T15:53:19Z","updated_at":"2017-04-28T23:12:01Z","pushed_at":"2017-06-09T19:12:31Z","git_url":"git://github.com/BambooHR/guardrail.git","ssh_url":"git@github.com:BambooHR/guardrail.git","clone_url":"https://github.com/BambooHR/guardrail.git","svn_url":"https://github.com/BambooHR/guardrail","homepage":null,"size":241,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/BambooHR/guardrail/pulls/27"},"html":{"href":"https://github.com/BambooHR/guardrail/pull/27"},"issue":{"href":"https://api.github.com/repos/BambooHR/guardrail/issues/27"},"comments":{"href":"https://api.github.com/repos/BambooHR/guardrail/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/BambooHR/guardrail/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/BambooHR/guardrail/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/BambooHR/guardrail/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/BambooHR/guardrail/statuses/714ff47bce00963aa6ce43e6b0ef578bbef8b1d9"}}}}
{"actor":{"display_login":"cdburgess"}}