{"action":"created","comment":{"url":"https://api.github.com/repos/ChrisBAshton/major-project/pulls/comments/27104400","id":27104400,"diff_hunk":"@@ -0,0 +1,58 @@\n+<div class=\"row\">\n+    <div class=\"col-sm-3\">\n+        Name:\n+    </div>\n+    <div class=\"col-sm-9\">\n+        <?php echo $viewAccount; ?>\n+    </div>\n+</div>\n+\n+<div class=\"row\">\n+    <div class=\"col-sm-3\">\n+        Role:\n+    </div>\n+    <div class=\"col-sm-9\">\n+        <?php\n+        switch($viewAccount) {\n+            case $viewAccount instanceof Mediator:\n+                echo 'Mediator';\n+                break;\n+            case $viewAccount instanceof MediationCentre:\n+                echo 'Mediation Centre';\n+                break;\n+            case $viewAccount instanceof Agent:\n+                echo 'Agent';\n+                break;\n+            case $viewAccount instanceof LawFirm:\n+                echo 'Law Firm';\n+                break;\n+            default:\n+                echo 'unknown';","path":"webapp/view/profile.html","position":30,"original_position":30,"commit_id":"02122641f910f2f51e1522ed5b1fbb0c185ea374","original_commit_id":"02122641f910f2f51e1522ed5b1fbb0c185ea374","user":{"login":"ChrisBAshton","id":5111927,"avatar_url":"https://avatars.githubusercontent.com/u/5111927?v=3","gravatar_id":"","url":"https://api.github.com/users/ChrisBAshton","html_url":"https://github.com/ChrisBAshton","followers_url":"https://api.github.com/users/ChrisBAshton/followers","following_url":"https://api.github.com/users/ChrisBAshton/following{/other_user}","gists_url":"https://api.github.com/users/ChrisBAshton/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisBAshton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisBAshton/subscriptions","organizations_url":"https://api.github.com/users/ChrisBAshton/orgs","repos_url":"https://api.github.com/users/ChrisBAshton/repos","events_url":"https://api.github.com/users/ChrisBAshton/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisBAshton/received_events","type":"User","site_admin":false},"body":"And then check for any other instance where we're querying the account class just to echo the account type.","created_at":"2015-03-25T09:20:46Z","updated_at":"2015-03-25T09:20:46Z","html_url":"https://github.com/ChrisBAshton/major-project/pull/34#discussion_r27104400","pull_request_url":"https://api.github.com/repos/ChrisBAshton/major-project/pulls/34","_links":{"self":{"href":"https://api.github.com/repos/ChrisBAshton/major-project/pulls/comments/27104400"},"html":{"href":"https://github.com/ChrisBAshton/major-project/pull/34#discussion_r27104400"},"pull_request":{"href":"https://api.github.com/repos/ChrisBAshton/major-project/pulls/34"}}},"pull_request":{"url":"https://api.github.com/repos/ChrisBAshton/major-project/pulls/34","id":31527147,"html_url":"https://github.com/ChrisBAshton/major-project/pull/34","diff_url":"https://github.com/ChrisBAshton/major-project/pull/34.diff","patch_url":"https://github.com/ChrisBAshton/major-project/pull/34.patch","issue_url":"https://api.github.com/repos/ChrisBAshton/major-project/issues/34","number":34,"state":"open","locked":false,"title":"Mediation","user":{"login":"ChrisBAshton","id":5111927,"avatar_url":"https://avatars.githubusercontent.com/u/5111927?v=3","gravatar_id":"","url":"https://api.github.com/users/ChrisBAshton","html_url":"https://github.com/ChrisBAshton","followers_url":"https://api.github.com/users/ChrisBAshton/followers","following_url":"https://api.github.com/users/ChrisBAshton/following{/other_user}","gists_url":"https://api.github.com/users/ChrisBAshton/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisBAshton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisBAshton/subscriptions","organizations_url":"https://api.github.com/users/ChrisBAshton/orgs","repos_url":"https://api.github.com/users/ChrisBAshton/repos","events_url":"https://api.github.com/users/ChrisBAshton/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisBAshton/received_events","type":"User","site_admin":false},"body":"This pull request will add Mediation functionality to a dispute.\r\n\r\n@TODO - need to add unit tests before merging.","created_at":"2015-03-19T14:19:47Z","updated_at":"2015-03-25T09:20:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1e0f41dcd7c29a616f8a787803706aa19e4f4d72","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ChrisBAshton/major-project/pulls/34/commits","review_comments_url":"https://api.github.com/repos/ChrisBAshton/major-project/pulls/34/comments","review_comment_url":"https://api.github.com/repos/ChrisBAshton/major-project/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ChrisBAshton/major-project/issues/34/comments","statuses_url":"https://api.github.com/repos/ChrisBAshton/major-project/statuses/02122641f910f2f51e1522ed5b1fbb0c185ea374","head":{"label":"ChrisBAshton:mediation","ref":"mediation","sha":"02122641f910f2f51e1522ed5b1fbb0c185ea374","user":{"login":"ChrisBAshton","id":5111927,"avatar_url":"https://avatars.githubusercontent.com/u/5111927?v=3","gravatar_id":"","url":"https://api.github.com/users/ChrisBAshton","html_url":"https://github.com/ChrisBAshton","followers_url":"https://api.github.com/users/ChrisBAshton/followers","following_url":"https://api.github.com/users/ChrisBAshton/following{/other_user}","gists_url":"https://api.github.com/users/ChrisBAshton/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisBAshton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisBAshton/subscriptions","organizations_url":"https://api.github.com/users/ChrisBAshton/orgs","repos_url":"https://api.github.com/users/ChrisBAshton/repos","events_url":"https://api.github.com/users/ChrisBAshton/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisBAshton/received_events","type":"User","site_admin":false},"repo":{"id":30501344,"name":"major-project","full_name":"ChrisBAshton/major-project","owner":{"login":"ChrisBAshton","id":5111927,"avatar_url":"https://avatars.githubusercontent.com/u/5111927?v=3","gravatar_id":"","url":"https://api.github.com/users/ChrisBAshton","html_url":"https://github.com/ChrisBAshton","followers_url":"https://api.github.com/users/ChrisBAshton/followers","following_url":"https://api.github.com/users/ChrisBAshton/following{/other_user}","gists_url":"https://api.github.com/users/ChrisBAshton/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisBAshton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisBAshton/subscriptions","organizations_url":"https://api.github.com/users/ChrisBAshton/orgs","repos_url":"https://api.github.com/users/ChrisBAshton/repos","events_url":"https://api.github.com/users/ChrisBAshton/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisBAshton/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ChrisBAshton/major-project","description":"Online Dispute Resolution for Maritime Collisions","fork":false,"url":"https://api.github.com/repos/ChrisBAshton/major-project","forks_url":"https://api.github.com/repos/ChrisBAshton/major-project/forks","keys_url":"https://api.github.com/repos/ChrisBAshton/major-project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ChrisBAshton/major-project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ChrisBAshton/major-project/teams","hooks_url":"https://api.github.com/repos/ChrisBAshton/major-project/hooks","issue_events_url":"https://api.github.com/repos/ChrisBAshton/major-project/issues/events{/number}","events_url":"https://api.github.com/repos/ChrisBAshton/major-project/events","assignees_url":"https://api.github.com/repos/ChrisBAshton/major-project/assignees{/user}","branches_url":"https://api.github.com/repos/ChrisBAshton/major-project/branches{/branch}","tags_url":"https://api.github.com/repos/ChrisBAshton/major-project/tags","blobs_url":"https://api.github.com/repos/ChrisBAshton/major-project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ChrisBAshton/major-project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ChrisBAshton/major-project/git/refs{/sha}","trees_url":"https://api.github.com/repos/ChrisBAshton/major-project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ChrisBAshton/major-project/statuses/{sha}","languages_url":"https://api.github.com/repos/ChrisBAshton/major-project/languages","stargazers_url":"https://api.github.com/repos/ChrisBAshton/major-project/stargazers","contributors_url":"https://api.github.com/repos/ChrisBAshton/major-project/contributors","subscribers_url":"https://api.github.com/repos/ChrisBAshton/major-project/subscribers","subscription_url":"https://api.github.com/repos/ChrisBAshton/major-project/subscription","commits_url":"https://api.github.com/repos/ChrisBAshton/major-project/commits{/sha}","git_commits_url":"https://api.github.com/repos/ChrisBAshton/major-project/git/commits{/sha}","comments_url":"https://api.github.com/repos/ChrisBAshton/major-project/comments{/number}","issue_comment_url":"https://api.github.com/repos/ChrisBAshton/major-project/issues/comments{/number}","contents_url":"https://api.github.com/repos/ChrisBAshton/major-project/contents/{+path}","compare_url":"https://api.github.com/repos/ChrisBAshton/major-project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ChrisBAshton/major-project/merges","archive_url":"https://api.github.com/repos/ChrisBAshton/major-project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ChrisBAshton/major-project/downloads","issues_url":"https://api.github.com/repos/ChrisBAshton/major-project/issues{/number}","pulls_url":"https://api.github.com/repos/ChrisBAshton/major-project/pulls{/number}","milestones_url":"https://api.github.com/repos/ChrisBAshton/major-project/milestones{/number}","notifications_url":"https://api.github.com/repos/ChrisBAshton/major-project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ChrisBAshton/major-project/labels{/name}","releases_url":"https://api.github.com/repos/ChrisBAshton/major-project/releases{/id}","created_at":"2015-02-08T18:46:34Z","updated_at":"2015-03-18T13:30:56Z","pushed_at":"2015-03-25T08:49:13Z","git_url":"git://github.com/ChrisBAshton/major-project.git","ssh_url":"git@github.com:ChrisBAshton/major-project.git","clone_url":"https://github.com/ChrisBAshton/major-project.git","svn_url":"https://github.com/ChrisBAshton/major-project","homepage":null,"size":1789,"stargazers_count":6,"watchers_count":6,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":13,"forks":0,"open_issues":13,"watchers":6,"default_branch":"master"}},"base":{"label":"ChrisBAshton:master","ref":"master","sha":"bdf47f003d62b23b7084a4e3890280be496bd585","user":{"login":"ChrisBAshton","id":5111927,"avatar_url":"https://avatars.githubusercontent.com/u/5111927?v=3","gravatar_id":"","url":"https://api.github.com/users/ChrisBAshton","html_url":"https://github.com/ChrisBAshton","followers_url":"https://api.github.com/users/ChrisBAshton/followers","following_url":"https://api.github.com/users/ChrisBAshton/following{/other_user}","gists_url":"https://api.github.com/users/ChrisBAshton/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisBAshton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisBAshton/subscriptions","organizations_url":"https://api.github.com/users/ChrisBAshton/orgs","repos_url":"https://api.github.com/users/ChrisBAshton/repos","events_url":"https://api.github.com/users/ChrisBAshton/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisBAshton/received_events","type":"User","site_admin":false},"repo":{"id":30501344,"name":"major-project","full_name":"ChrisBAshton/major-project","owner":{"login":"ChrisBAshton","id":5111927,"avatar_url":"https://avatars.githubusercontent.com/u/5111927?v=3","gravatar_id":"","url":"https://api.github.com/users/ChrisBAshton","html_url":"https://github.com/ChrisBAshton","followers_url":"https://api.github.com/users/ChrisBAshton/followers","following_url":"https://api.github.com/users/ChrisBAshton/following{/other_user}","gists_url":"https://api.github.com/users/ChrisBAshton/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisBAshton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisBAshton/subscriptions","organizations_url":"https://api.github.com/users/ChrisBAshton/orgs","repos_url":"https://api.github.com/users/ChrisBAshton/repos","events_url":"https://api.github.com/users/ChrisBAshton/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisBAshton/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ChrisBAshton/major-project","description":"Online Dispute Resolution for Maritime Collisions","fork":false,"url":"https://api.github.com/repos/ChrisBAshton/major-project","forks_url":"https://api.github.com/repos/ChrisBAshton/major-project/forks","keys_url":"https://api.github.com/repos/ChrisBAshton/major-project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ChrisBAshton/major-project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ChrisBAshton/major-project/teams","hooks_url":"https://api.github.com/repos/ChrisBAshton/major-project/hooks","issue_events_url":"https://api.github.com/repos/ChrisBAshton/major-project/issues/events{/number}","events_url":"https://api.github.com/repos/ChrisBAshton/major-project/events","assignees_url":"https://api.github.com/repos/ChrisBAshton/major-project/assignees{/user}","branches_url":"https://api.github.com/repos/ChrisBAshton/major-project/branches{/branch}","tags_url":"https://api.github.com/repos/ChrisBAshton/major-project/tags","blobs_url":"https://api.github.com/repos/ChrisBAshton/major-project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ChrisBAshton/major-project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ChrisBAshton/major-project/git/refs{/sha}","trees_url":"https://api.github.com/repos/ChrisBAshton/major-project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ChrisBAshton/major-project/statuses/{sha}","languages_url":"https://api.github.com/repos/ChrisBAshton/major-project/languages","stargazers_url":"https://api.github.com/repos/ChrisBAshton/major-project/stargazers","contributors_url":"https://api.github.com/repos/ChrisBAshton/major-project/contributors","subscribers_url":"https://api.github.com/repos/ChrisBAshton/major-project/subscribers","subscription_url":"https://api.github.com/repos/ChrisBAshton/major-project/subscription","commits_url":"https://api.github.com/repos/ChrisBAshton/major-project/commits{/sha}","git_commits_url":"https://api.github.com/repos/ChrisBAshton/major-project/git/commits{/sha}","comments_url":"https://api.github.com/repos/ChrisBAshton/major-project/comments{/number}","issue_comment_url":"https://api.github.com/repos/ChrisBAshton/major-project/issues/comments{/number}","contents_url":"https://api.github.com/repos/ChrisBAshton/major-project/contents/{+path}","compare_url":"https://api.github.com/repos/ChrisBAshton/major-project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ChrisBAshton/major-project/merges","archive_url":"https://api.github.com/repos/ChrisBAshton/major-project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ChrisBAshton/major-project/downloads","issues_url":"https://api.github.com/repos/ChrisBAshton/major-project/issues{/number}","pulls_url":"https://api.github.com/repos/ChrisBAshton/major-project/pulls{/number}","milestones_url":"https://api.github.com/repos/ChrisBAshton/major-project/milestones{/number}","notifications_url":"https://api.github.com/repos/ChrisBAshton/major-project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ChrisBAshton/major-project/labels{/name}","releases_url":"https://api.github.com/repos/ChrisBAshton/major-project/releases{/id}","created_at":"2015-02-08T18:46:34Z","updated_at":"2015-03-18T13:30:56Z","pushed_at":"2015-03-25T08:49:13Z","git_url":"git://github.com/ChrisBAshton/major-project.git","ssh_url":"git@github.com:ChrisBAshton/major-project.git","clone_url":"https://github.com/ChrisBAshton/major-project.git","svn_url":"https://github.com/ChrisBAshton/major-project","homepage":null,"size":1789,"stargazers_count":6,"watchers_count":6,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":13,"forks":0,"open_issues":13,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ChrisBAshton/major-project/pulls/34"},"html":{"href":"https://github.com/ChrisBAshton/major-project/pull/34"},"issue":{"href":"https://api.github.com/repos/ChrisBAshton/major-project/issues/34"},"comments":{"href":"https://api.github.com/repos/ChrisBAshton/major-project/issues/34/comments"},"review_comments":{"href":"https://api.github.com/repos/ChrisBAshton/major-project/pulls/34/comments"},"review_comment":{"href":"https://api.github.com/repos/ChrisBAshton/major-project/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ChrisBAshton/major-project/pulls/34/commits"},"statuses":{"href":"https://api.github.com/repos/ChrisBAshton/major-project/statuses/02122641f910f2f51e1522ed5b1fbb0c185ea374"}}}}