{"action":"created","comment":{"url":"https://api.github.com/repos/StyleCI/StyleCI/pulls/comments/24607226","id":24607226,"diff_hunk":"@@ -0,0 +1,77 @@\n+<?php\n+\n+/*\n+ * This file is part of StyleCI.\n+ *\n+ * (c) Graham Campbell <graham@mineuk.com>\n+ * (c) Joseph Cohen <joseph.cohen@dinkbit.com>\n+ *\n+ * For the full copyright and license information, please view the LICENSE\n+ * file that was distributed with this source code.\n+ */\n+\n+namespace StyleCI\\StyleCI\\Handlers\\Events;\n+\n+use McCool\\LaravelAutoPresenter\\Facades\\AutoPresenter;\n+use StyleCI\\StyleCI\\Events\\AnalysisHasCompletedEvent;\n+use StyleCI\\StyleCI\\Models\\Commit;\n+use Vinkla\\Pusher\\PusherManager as Pusher;\n+\n+/**\n+ * This is the real time status handler class.\n+ *\n+ * @author Joseph Cohen <joseph.cohen>\n+ */\n+class RealTimeStatusHandler\n+{\n+    /**\n+     * The pusher instance.\n+     *\n+     * @var \\Vinkla\\Pusher\\PusherManager","path":"app/Handlers/Events/RealTimeStatusHandler.php","position":30,"original_position":30,"commit_id":"86b62b9631b530695bbeb9da31b9a3a7aa0199d1","original_commit_id":"86b62b9631b530695bbeb9da31b9a3a7aa0199d1","user":{"login":"GrahamCampbell","id":2829600,"avatar_url":"https://avatars.githubusercontent.com/u/2829600?v=3","gravatar_id":"","url":"https://api.github.com/users/GrahamCampbell","html_url":"https://github.com/GrahamCampbell","followers_url":"https://api.github.com/users/GrahamCampbell/followers","following_url":"https://api.github.com/users/GrahamCampbell/following{/other_user}","gists_url":"https://api.github.com/users/GrahamCampbell/gists{/gist_id}","starred_url":"https://api.github.com/users/GrahamCampbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrahamCampbell/subscriptions","organizations_url":"https://api.github.com/users/GrahamCampbell/orgs","repos_url":"https://api.github.com/users/GrahamCampbell/repos","events_url":"https://api.github.com/users/GrahamCampbell/events{/privacy}","received_events_url":"https://api.github.com/users/GrahamCampbell/received_events","type":"User","site_admin":false},"body":"This isn't right. We don't want the manager itself here.","created_at":"2015-02-12T18:48:57Z","updated_at":"2015-02-12T18:48:57Z","html_url":"https://github.com/StyleCI/StyleCI/pull/97#discussion_r24607226","pull_request_url":"https://api.github.com/repos/StyleCI/StyleCI/pulls/97","_links":{"self":{"href":"https://api.github.com/repos/StyleCI/StyleCI/pulls/comments/24607226"},"html":{"href":"https://github.com/StyleCI/StyleCI/pull/97#discussion_r24607226"},"pull_request":{"href":"https://api.github.com/repos/StyleCI/StyleCI/pulls/97"}}},"pull_request":{"url":"https://api.github.com/repos/StyleCI/StyleCI/pulls/97","id":29158363,"html_url":"https://github.com/StyleCI/StyleCI/pull/97","diff_url":"https://github.com/StyleCI/StyleCI/pull/97.diff","patch_url":"https://github.com/StyleCI/StyleCI/pull/97.patch","issue_url":"https://api.github.com/repos/StyleCI/StyleCI/issues/97","number":97,"state":"open","locked":false,"title":"Live updates with Pusher","user":{"login":"joecohens","id":1803556,"avatar_url":"https://avatars.githubusercontent.com/u/1803556?v=3","gravatar_id":"","url":"https://api.github.com/users/joecohens","html_url":"https://github.com/joecohens","followers_url":"https://api.github.com/users/joecohens/followers","following_url":"https://api.github.com/users/joecohens/following{/other_user}","gists_url":"https://api.github.com/users/joecohens/gists{/gist_id}","starred_url":"https://api.github.com/users/joecohens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joecohens/subscriptions","organizations_url":"https://api.github.com/users/joecohens/orgs","repos_url":"https://api.github.com/users/joecohens/repos","events_url":"https://api.github.com/users/joecohens/events{/privacy}","received_events_url":"https://api.github.com/users/joecohens/received_events","type":"User","site_admin":false},"body":"//cc @GrahamCampbell \r\n\r\nCloses https://github.com/StyleCI/StyleCI/issues/90","created_at":"2015-02-12T07:39:59Z","updated_at":"2015-02-12T18:48:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6b59d2a5f566ec641e34eec9e2600166f6a501ba","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/StyleCI/StyleCI/pulls/97/commits","review_comments_url":"https://api.github.com/repos/StyleCI/StyleCI/pulls/97/comments","review_comment_url":"https://api.github.com/repos/StyleCI/StyleCI/pulls/comments/{number}","comments_url":"https://api.github.com/repos/StyleCI/StyleCI/issues/97/comments","statuses_url":"https://api.github.com/repos/StyleCI/StyleCI/statuses/86b62b9631b530695bbeb9da31b9a3a7aa0199d1","head":{"label":"StyleCI:pusher","ref":"pusher","sha":"86b62b9631b530695bbeb9da31b9a3a7aa0199d1","user":{"login":"StyleCI","id":10179029,"avatar_url":"https://avatars.githubusercontent.com/u/10179029?v=3","gravatar_id":"","url":"https://api.github.com/users/StyleCI","html_url":"https://github.com/StyleCI","followers_url":"https://api.github.com/users/StyleCI/followers","following_url":"https://api.github.com/users/StyleCI/following{/other_user}","gists_url":"https://api.github.com/users/StyleCI/gists{/gist_id}","starred_url":"https://api.github.com/users/StyleCI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StyleCI/subscriptions","organizations_url":"https://api.github.com/users/StyleCI/orgs","repos_url":"https://api.github.com/users/StyleCI/repos","events_url":"https://api.github.com/users/StyleCI/events{/privacy}","received_events_url":"https://api.github.com/users/StyleCI/received_events","type":"Organization","site_admin":false},"repo":{"id":26929642,"name":"StyleCI","full_name":"StyleCI/StyleCI","owner":{"login":"StyleCI","id":10179029,"avatar_url":"https://avatars.githubusercontent.com/u/10179029?v=3","gravatar_id":"","url":"https://api.github.com/users/StyleCI","html_url":"https://github.com/StyleCI","followers_url":"https://api.github.com/users/StyleCI/followers","following_url":"https://api.github.com/users/StyleCI/following{/other_user}","gists_url":"https://api.github.com/users/StyleCI/gists{/gist_id}","starred_url":"https://api.github.com/users/StyleCI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StyleCI/subscriptions","organizations_url":"https://api.github.com/users/StyleCI/orgs","repos_url":"https://api.github.com/users/StyleCI/repos","events_url":"https://api.github.com/users/StyleCI/events{/privacy}","received_events_url":"https://api.github.com/users/StyleCI/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/StyleCI/StyleCI","description":"A PHP coding style continuous integration service","fork":false,"url":"https://api.github.com/repos/StyleCI/StyleCI","forks_url":"https://api.github.com/repos/StyleCI/StyleCI/forks","keys_url":"https://api.github.com/repos/StyleCI/StyleCI/keys{/key_id}","collaborators_url":"https://api.github.com/repos/StyleCI/StyleCI/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/StyleCI/StyleCI/teams","hooks_url":"https://api.github.com/repos/StyleCI/StyleCI/hooks","issue_events_url":"https://api.github.com/repos/StyleCI/StyleCI/issues/events{/number}","events_url":"https://api.github.com/repos/StyleCI/StyleCI/events","assignees_url":"https://api.github.com/repos/StyleCI/StyleCI/assignees{/user}","branches_url":"https://api.github.com/repos/StyleCI/StyleCI/branches{/branch}","tags_url":"https://api.github.com/repos/StyleCI/StyleCI/tags","blobs_url":"https://api.github.com/repos/StyleCI/StyleCI/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/StyleCI/StyleCI/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/StyleCI/StyleCI/git/refs{/sha}","trees_url":"https://api.github.com/repos/StyleCI/StyleCI/git/trees{/sha}","statuses_url":"https://api.github.com/repos/StyleCI/StyleCI/statuses/{sha}","languages_url":"https://api.github.com/repos/StyleCI/StyleCI/languages","stargazers_url":"https://api.github.com/repos/StyleCI/StyleCI/stargazers","contributors_url":"https://api.github.com/repos/StyleCI/StyleCI/contributors","subscribers_url":"https://api.github.com/repos/StyleCI/StyleCI/subscribers","subscription_url":"https://api.github.com/repos/StyleCI/StyleCI/subscription","commits_url":"https://api.github.com/repos/StyleCI/StyleCI/commits{/sha}","git_commits_url":"https://api.github.com/repos/StyleCI/StyleCI/git/commits{/sha}","comments_url":"https://api.github.com/repos/StyleCI/StyleCI/comments{/number}","issue_comment_url":"https://api.github.com/repos/StyleCI/StyleCI/issues/comments/{number}","contents_url":"https://api.github.com/repos/StyleCI/StyleCI/contents/{+path}","compare_url":"https://api.github.com/repos/StyleCI/StyleCI/compare/{base}...{head}","merges_url":"https://api.github.com/repos/StyleCI/StyleCI/merges","archive_url":"https://api.github.com/repos/StyleCI/StyleCI/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/StyleCI/StyleCI/downloads","issues_url":"https://api.github.com/repos/StyleCI/StyleCI/issues{/number}","pulls_url":"https://api.github.com/repos/StyleCI/StyleCI/pulls{/number}","milestones_url":"https://api.github.com/repos/StyleCI/StyleCI/milestones{/number}","notifications_url":"https://api.github.com/repos/StyleCI/StyleCI/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/StyleCI/StyleCI/labels{/name}","releases_url":"https://api.github.com/repos/StyleCI/StyleCI/releases{/id}","created_at":"2014-11-20T20:06:19Z","updated_at":"2015-02-12T15:02:30Z","pushed_at":"2015-02-12T07:41:19Z","git_url":"git://github.com/StyleCI/StyleCI.git","ssh_url":"git@github.com:StyleCI/StyleCI.git","clone_url":"https://github.com/StyleCI/StyleCI.git","svn_url":"https://github.com/StyleCI/StyleCI","homepage":"https://styleci.io/","size":3225,"stargazers_count":26,"watchers_count":26,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":15,"forks":5,"open_issues":15,"watchers":26,"default_branch":"master"}},"base":{"label":"StyleCI:master","ref":"master","sha":"5095f954b2b078e40924d921ef61398004e7e574","user":{"login":"StyleCI","id":10179029,"avatar_url":"https://avatars.githubusercontent.com/u/10179029?v=3","gravatar_id":"","url":"https://api.github.com/users/StyleCI","html_url":"https://github.com/StyleCI","followers_url":"https://api.github.com/users/StyleCI/followers","following_url":"https://api.github.com/users/StyleCI/following{/other_user}","gists_url":"https://api.github.com/users/StyleCI/gists{/gist_id}","starred_url":"https://api.github.com/users/StyleCI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StyleCI/subscriptions","organizations_url":"https://api.github.com/users/StyleCI/orgs","repos_url":"https://api.github.com/users/StyleCI/repos","events_url":"https://api.github.com/users/StyleCI/events{/privacy}","received_events_url":"https://api.github.com/users/StyleCI/received_events","type":"Organization","site_admin":false},"repo":{"id":26929642,"name":"StyleCI","full_name":"StyleCI/StyleCI","owner":{"login":"StyleCI","id":10179029,"avatar_url":"https://avatars.githubusercontent.com/u/10179029?v=3","gravatar_id":"","url":"https://api.github.com/users/StyleCI","html_url":"https://github.com/StyleCI","followers_url":"https://api.github.com/users/StyleCI/followers","following_url":"https://api.github.com/users/StyleCI/following{/other_user}","gists_url":"https://api.github.com/users/StyleCI/gists{/gist_id}","starred_url":"https://api.github.com/users/StyleCI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StyleCI/subscriptions","organizations_url":"https://api.github.com/users/StyleCI/orgs","repos_url":"https://api.github.com/users/StyleCI/repos","events_url":"https://api.github.com/users/StyleCI/events{/privacy}","received_events_url":"https://api.github.com/users/StyleCI/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/StyleCI/StyleCI","description":"A PHP coding style continuous integration service","fork":false,"url":"https://api.github.com/repos/StyleCI/StyleCI","forks_url":"https://api.github.com/repos/StyleCI/StyleCI/forks","keys_url":"https://api.github.com/repos/StyleCI/StyleCI/keys{/key_id}","collaborators_url":"https://api.github.com/repos/StyleCI/StyleCI/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/StyleCI/StyleCI/teams","hooks_url":"https://api.github.com/repos/StyleCI/StyleCI/hooks","issue_events_url":"https://api.github.com/repos/StyleCI/StyleCI/issues/events{/number}","events_url":"https://api.github.com/repos/StyleCI/StyleCI/events","assignees_url":"https://api.github.com/repos/StyleCI/StyleCI/assignees{/user}","branches_url":"https://api.github.com/repos/StyleCI/StyleCI/branches{/branch}","tags_url":"https://api.github.com/repos/StyleCI/StyleCI/tags","blobs_url":"https://api.github.com/repos/StyleCI/StyleCI/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/StyleCI/StyleCI/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/StyleCI/StyleCI/git/refs{/sha}","trees_url":"https://api.github.com/repos/StyleCI/StyleCI/git/trees{/sha}","statuses_url":"https://api.github.com/repos/StyleCI/StyleCI/statuses/{sha}","languages_url":"https://api.github.com/repos/StyleCI/StyleCI/languages","stargazers_url":"https://api.github.com/repos/StyleCI/StyleCI/stargazers","contributors_url":"https://api.github.com/repos/StyleCI/StyleCI/contributors","subscribers_url":"https://api.github.com/repos/StyleCI/StyleCI/subscribers","subscription_url":"https://api.github.com/repos/StyleCI/StyleCI/subscription","commits_url":"https://api.github.com/repos/StyleCI/StyleCI/commits{/sha}","git_commits_url":"https://api.github.com/repos/StyleCI/StyleCI/git/commits{/sha}","comments_url":"https://api.github.com/repos/StyleCI/StyleCI/comments{/number}","issue_comment_url":"https://api.github.com/repos/StyleCI/StyleCI/issues/comments/{number}","contents_url":"https://api.github.com/repos/StyleCI/StyleCI/contents/{+path}","compare_url":"https://api.github.com/repos/StyleCI/StyleCI/compare/{base}...{head}","merges_url":"https://api.github.com/repos/StyleCI/StyleCI/merges","archive_url":"https://api.github.com/repos/StyleCI/StyleCI/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/StyleCI/StyleCI/downloads","issues_url":"https://api.github.com/repos/StyleCI/StyleCI/issues{/number}","pulls_url":"https://api.github.com/repos/StyleCI/StyleCI/pulls{/number}","milestones_url":"https://api.github.com/repos/StyleCI/StyleCI/milestones{/number}","notifications_url":"https://api.github.com/repos/StyleCI/StyleCI/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/StyleCI/StyleCI/labels{/name}","releases_url":"https://api.github.com/repos/StyleCI/StyleCI/releases{/id}","created_at":"2014-11-20T20:06:19Z","updated_at":"2015-02-12T15:02:30Z","pushed_at":"2015-02-12T07:41:19Z","git_url":"git://github.com/StyleCI/StyleCI.git","ssh_url":"git@github.com:StyleCI/StyleCI.git","clone_url":"https://github.com/StyleCI/StyleCI.git","svn_url":"https://github.com/StyleCI/StyleCI","homepage":"https://styleci.io/","size":3225,"stargazers_count":26,"watchers_count":26,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":15,"forks":5,"open_issues":15,"watchers":26,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/StyleCI/StyleCI/pulls/97"},"html":{"href":"https://github.com/StyleCI/StyleCI/pull/97"},"issue":{"href":"https://api.github.com/repos/StyleCI/StyleCI/issues/97"},"comments":{"href":"https://api.github.com/repos/StyleCI/StyleCI/issues/97/comments"},"review_comments":{"href":"https://api.github.com/repos/StyleCI/StyleCI/pulls/97/comments"},"review_comment":{"href":"https://api.github.com/repos/StyleCI/StyleCI/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/StyleCI/StyleCI/pulls/97/commits"},"statuses":{"href":"https://api.github.com/repos/StyleCI/StyleCI/statuses/86b62b9631b530695bbeb9da31b9a3a7aa0199d1"}}}}