{"action":"created","comment":{"url":"https://api.github.com/repos/JayPHP/application_statuses/pulls/comments/69269031","id":69269031,"diff_hunk":"@@ -9,52 +9,52 @@\n \n class block_application_statuses extends block_list \n {\n-\tpublic function init() \n-\t{\n-\t    $this->title = get_string('pluginname', 'block_application_statuses');\n-\t}\n-\n-\tpublic function specialization() \n-\t{\n-\t    if (isset($this->config)) {\n-\t        if (!empty($this->config->title)) {\n-\t            $this->title = $this->config->title;\n-\t        }  \n-\t    }\n-\t}\n-\n-\tpublic function get_content() \n-\t{\n-\t    if ($this->content !== null) {\n-\t    \treturn $this->content;\n-\t    }\n-\n-\t    $this->content = new stdClass;\n-\t    $this->getApplications();\n-\n-\t\treturn $this->content;\n-\t}\n-\n-\t/**\n-\t * Gets applciations from db for user. Sets public $content to null if no applications found.\n-\t *\n-\t * @return null \n-\t */\n-\tprivate function getApplications()\n-\t{ \n-\t\tglobal $DB, $USER;\n-\n-\t\tif ($applications = $DB->get_records('block_application_statuses', ['userid' => $USER->id])) {\n-\t\t\tif (empty($applications)) {\n-\t\t\t\t$this->content = null;\n-\t\t\t\treturn;\n-\t\t\t}\n-\n-\t\t\t$this->content->items = array();\n-\t\t\tforeach ($applications as $application) {\n-\t\t\t\t$this->content->items[] = html_writer::tag('a', $application->prospect_title, ['href' => $application->link, 'target' => '_blank', 'class' => 'application-prospect']);\n-\t\t\t\t$this->content->items[] = html_writer::div($application->status);\n-\t\t\t}\n-\t\t}\n-\t}\n-\t}\n\\ No newline at end of file\n+    public function init() \n+    {\n+        $this->title = get_string('pluginname', 'block_application_statuses');\n+    }\n+\n+    public function specialization() \n+    {\n+        if (isset($this->config)) {\n+            if (!empty($this->config->title)) {\n+                $this->title = $this->config->title;\n+            }  \n+        }\n+    }\n+\n+    public function get_content() \n+    {\n+        if ($this->content !== null) {\n+        \treturn $this->content;\n+        }\n+\n+        $this->content = new stdClass;\n+        $this->getApplications();\n+\n+    \treturn $this->content;\n+    }\n+\n+    /**\n+     * Gets applciations from db for user. Sets public $content to null if no applications found.\n+     *\n+     * @return null \n+     */\n+    private function getApplications()\n+    { \n+    \tglobal $DB, $USER;\n+\n+    \tif ($applications = $DB->get_records('block_application_statuses', ['userid' => $USER->id])) {\n+    \t\tif (empty($applications)) {\n+    \t\t\t$this->content = null;\n+    \t\t\treturn;\n+    \t\t}\n+\n+    \t\t$this->content->items = array();\n+    \t\tforeach ($applications as $application) {\n+    \t\t\t$this->content->items[] = html_writer::tag('a', $application->prospect_title, ['href' => $application->link, 'target' => '_blank', 'class' => 'application-prospect']);\n+    \t\t\t$this->content->items[] = html_writer::div($application->status);\n+    \t\t}","path":"block_application_statuses.php","position":99,"original_position":99,"commit_id":"fb47a5252023e867f9005c7a2a52cce3b2864dda","original_commit_id":"fb47a5252023e867f9005c7a2a52cce3b2864dda","user":{"login":"stickler-ci","id":16011037,"avatar_url":"https://avatars.githubusercontent.com/u/16011037?v=3","gravatar_id":"","url":"https://api.github.com/users/stickler-ci","html_url":"https://github.com/stickler-ci","followers_url":"https://api.github.com/users/stickler-ci/followers","following_url":"https://api.github.com/users/stickler-ci/following{/other_user}","gists_url":"https://api.github.com/users/stickler-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/stickler-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stickler-ci/subscriptions","organizations_url":"https://api.github.com/users/stickler-ci/orgs","repos_url":"https://api.github.com/users/stickler-ci/repos","events_url":"https://api.github.com/users/stickler-ci/events{/privacy}","received_events_url":"https://api.github.com/users/stickler-ci/received_events","type":"User","site_admin":false},"body":"Spaces must be used to indent lines; tabs are not allowed","created_at":"2016-07-01T08:54:28Z","updated_at":"2016-07-01T08:54:28Z","html_url":"https://github.com/JayPHP/application_statuses/pull/1#discussion_r69269031","pull_request_url":"https://api.github.com/repos/JayPHP/application_statuses/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/JayPHP/application_statuses/pulls/comments/69269031"},"html":{"href":"https://github.com/JayPHP/application_statuses/pull/1#discussion_r69269031"},"pull_request":{"href":"https://api.github.com/repos/JayPHP/application_statuses/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/JayPHP/application_statuses/pulls/1","id":75947374,"html_url":"https://github.com/JayPHP/application_statuses/pull/1","diff_url":"https://github.com/JayPHP/application_statuses/pull/1.diff","patch_url":"https://github.com/JayPHP/application_statuses/pull/1.patch","issue_url":"https://api.github.com/repos/JayPHP/application_statuses/issues/1","number":1,"state":"open","locked":false,"title":"Indent Correction","user":{"login":"JayPHP","id":18351805,"avatar_url":"https://avatars.githubusercontent.com/u/18351805?v=3","gravatar_id":"","url":"https://api.github.com/users/JayPHP","html_url":"https://github.com/JayPHP","followers_url":"https://api.github.com/users/JayPHP/followers","following_url":"https://api.github.com/users/JayPHP/following{/other_user}","gists_url":"https://api.github.com/users/JayPHP/gists{/gist_id}","starred_url":"https://api.github.com/users/JayPHP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JayPHP/subscriptions","organizations_url":"https://api.github.com/users/JayPHP/orgs","repos_url":"https://api.github.com/users/JayPHP/repos","events_url":"https://api.github.com/users/JayPHP/events{/privacy}","received_events_url":"https://api.github.com/users/JayPHP/received_events","type":"User","site_admin":false},"body":"New Pull request to trigger Stickler-CI check and correct indention.","created_at":"2016-07-01T08:54:24Z","updated_at":"2016-07-01T08:54:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1d5b3840a27da9106b5f4401c5b43629f126cb87","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/JayPHP/application_statuses/pulls/1/commits","review_comments_url":"https://api.github.com/repos/JayPHP/application_statuses/pulls/1/comments","review_comment_url":"https://api.github.com/repos/JayPHP/application_statuses/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JayPHP/application_statuses/issues/1/comments","statuses_url":"https://api.github.com/repos/JayPHP/application_statuses/statuses/fb47a5252023e867f9005c7a2a52cce3b2864dda","head":{"label":"JayPHP:coding_standards_check","ref":"coding_standards_check","sha":"fb47a5252023e867f9005c7a2a52cce3b2864dda","user":{"login":"JayPHP","id":18351805,"avatar_url":"https://avatars.githubusercontent.com/u/18351805?v=3","gravatar_id":"","url":"https://api.github.com/users/JayPHP","html_url":"https://github.com/JayPHP","followers_url":"https://api.github.com/users/JayPHP/followers","following_url":"https://api.github.com/users/JayPHP/following{/other_user}","gists_url":"https://api.github.com/users/JayPHP/gists{/gist_id}","starred_url":"https://api.github.com/users/JayPHP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JayPHP/subscriptions","organizations_url":"https://api.github.com/users/JayPHP/orgs","repos_url":"https://api.github.com/users/JayPHP/repos","events_url":"https://api.github.com/users/JayPHP/events{/privacy}","received_events_url":"https://api.github.com/users/JayPHP/received_events","type":"User","site_admin":false},"repo":{"id":62377640,"name":"application_statuses","full_name":"JayPHP/application_statuses","owner":{"login":"JayPHP","id":18351805,"avatar_url":"https://avatars.githubusercontent.com/u/18351805?v=3","gravatar_id":"","url":"https://api.github.com/users/JayPHP","html_url":"https://github.com/JayPHP","followers_url":"https://api.github.com/users/JayPHP/followers","following_url":"https://api.github.com/users/JayPHP/following{/other_user}","gists_url":"https://api.github.com/users/JayPHP/gists{/gist_id}","starred_url":"https://api.github.com/users/JayPHP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JayPHP/subscriptions","organizations_url":"https://api.github.com/users/JayPHP/orgs","repos_url":"https://api.github.com/users/JayPHP/repos","events_url":"https://api.github.com/users/JayPHP/events{/privacy}","received_events_url":"https://api.github.com/users/JayPHP/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JayPHP/application_statuses","description":"A block for Moodle that displays statuses of applications","fork":false,"url":"https://api.github.com/repos/JayPHP/application_statuses","forks_url":"https://api.github.com/repos/JayPHP/application_statuses/forks","keys_url":"https://api.github.com/repos/JayPHP/application_statuses/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JayPHP/application_statuses/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JayPHP/application_statuses/teams","hooks_url":"https://api.github.com/repos/JayPHP/application_statuses/hooks","issue_events_url":"https://api.github.com/repos/JayPHP/application_statuses/issues/events{/number}","events_url":"https://api.github.com/repos/JayPHP/application_statuses/events","assignees_url":"https://api.github.com/repos/JayPHP/application_statuses/assignees{/user}","branches_url":"https://api.github.com/repos/JayPHP/application_statuses/branches{/branch}","tags_url":"https://api.github.com/repos/JayPHP/application_statuses/tags","blobs_url":"https://api.github.com/repos/JayPHP/application_statuses/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JayPHP/application_statuses/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JayPHP/application_statuses/git/refs{/sha}","trees_url":"https://api.github.com/repos/JayPHP/application_statuses/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JayPHP/application_statuses/statuses/{sha}","languages_url":"https://api.github.com/repos/JayPHP/application_statuses/languages","stargazers_url":"https://api.github.com/repos/JayPHP/application_statuses/stargazers","contributors_url":"https://api.github.com/repos/JayPHP/application_statuses/contributors","subscribers_url":"https://api.github.com/repos/JayPHP/application_statuses/subscribers","subscription_url":"https://api.github.com/repos/JayPHP/application_statuses/subscription","commits_url":"https://api.github.com/repos/JayPHP/application_statuses/commits{/sha}","git_commits_url":"https://api.github.com/repos/JayPHP/application_statuses/git/commits{/sha}","comments_url":"https://api.github.com/repos/JayPHP/application_statuses/comments{/number}","issue_comment_url":"https://api.github.com/repos/JayPHP/application_statuses/issues/comments{/number}","contents_url":"https://api.github.com/repos/JayPHP/application_statuses/contents/{+path}","compare_url":"https://api.github.com/repos/JayPHP/application_statuses/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JayPHP/application_statuses/merges","archive_url":"https://api.github.com/repos/JayPHP/application_statuses/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JayPHP/application_statuses/downloads","issues_url":"https://api.github.com/repos/JayPHP/application_statuses/issues{/number}","pulls_url":"https://api.github.com/repos/JayPHP/application_statuses/pulls{/number}","milestones_url":"https://api.github.com/repos/JayPHP/application_statuses/milestones{/number}","notifications_url":"https://api.github.com/repos/JayPHP/application_statuses/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JayPHP/application_statuses/labels{/name}","releases_url":"https://api.github.com/repos/JayPHP/application_statuses/releases{/id}","deployments_url":"https://api.github.com/repos/JayPHP/application_statuses/deployments","created_at":"2016-07-01T08:28:51Z","updated_at":"2016-07-01T08:32:22Z","pushed_at":"2016-07-01T08:54:24Z","git_url":"git://github.com/JayPHP/application_statuses.git","ssh_url":"git@github.com:JayPHP/application_statuses.git","clone_url":"https://github.com/JayPHP/application_statuses.git","svn_url":"https://github.com/JayPHP/application_statuses","homepage":null,"size":0,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"JayPHP:master","ref":"master","sha":"f64f292745ed8f09591666a39b6bcb1284498ca6","user":{"login":"JayPHP","id":18351805,"avatar_url":"https://avatars.githubusercontent.com/u/18351805?v=3","gravatar_id":"","url":"https://api.github.com/users/JayPHP","html_url":"https://github.com/JayPHP","followers_url":"https://api.github.com/users/JayPHP/followers","following_url":"https://api.github.com/users/JayPHP/following{/other_user}","gists_url":"https://api.github.com/users/JayPHP/gists{/gist_id}","starred_url":"https://api.github.com/users/JayPHP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JayPHP/subscriptions","organizations_url":"https://api.github.com/users/JayPHP/orgs","repos_url":"https://api.github.com/users/JayPHP/repos","events_url":"https://api.github.com/users/JayPHP/events{/privacy}","received_events_url":"https://api.github.com/users/JayPHP/received_events","type":"User","site_admin":false},"repo":{"id":62377640,"name":"application_statuses","full_name":"JayPHP/application_statuses","owner":{"login":"JayPHP","id":18351805,"avatar_url":"https://avatars.githubusercontent.com/u/18351805?v=3","gravatar_id":"","url":"https://api.github.com/users/JayPHP","html_url":"https://github.com/JayPHP","followers_url":"https://api.github.com/users/JayPHP/followers","following_url":"https://api.github.com/users/JayPHP/following{/other_user}","gists_url":"https://api.github.com/users/JayPHP/gists{/gist_id}","starred_url":"https://api.github.com/users/JayPHP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JayPHP/subscriptions","organizations_url":"https://api.github.com/users/JayPHP/orgs","repos_url":"https://api.github.com/users/JayPHP/repos","events_url":"https://api.github.com/users/JayPHP/events{/privacy}","received_events_url":"https://api.github.com/users/JayPHP/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JayPHP/application_statuses","description":"A block for Moodle that displays statuses of applications","fork":false,"url":"https://api.github.com/repos/JayPHP/application_statuses","forks_url":"https://api.github.com/repos/JayPHP/application_statuses/forks","keys_url":"https://api.github.com/repos/JayPHP/application_statuses/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JayPHP/application_statuses/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JayPHP/application_statuses/teams","hooks_url":"https://api.github.com/repos/JayPHP/application_statuses/hooks","issue_events_url":"https://api.github.com/repos/JayPHP/application_statuses/issues/events{/number}","events_url":"https://api.github.com/repos/JayPHP/application_statuses/events","assignees_url":"https://api.github.com/repos/JayPHP/application_statuses/assignees{/user}","branches_url":"https://api.github.com/repos/JayPHP/application_statuses/branches{/branch}","tags_url":"https://api.github.com/repos/JayPHP/application_statuses/tags","blobs_url":"https://api.github.com/repos/JayPHP/application_statuses/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JayPHP/application_statuses/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JayPHP/application_statuses/git/refs{/sha}","trees_url":"https://api.github.com/repos/JayPHP/application_statuses/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JayPHP/application_statuses/statuses/{sha}","languages_url":"https://api.github.com/repos/JayPHP/application_statuses/languages","stargazers_url":"https://api.github.com/repos/JayPHP/application_statuses/stargazers","contributors_url":"https://api.github.com/repos/JayPHP/application_statuses/contributors","subscribers_url":"https://api.github.com/repos/JayPHP/application_statuses/subscribers","subscription_url":"https://api.github.com/repos/JayPHP/application_statuses/subscription","commits_url":"https://api.github.com/repos/JayPHP/application_statuses/commits{/sha}","git_commits_url":"https://api.github.com/repos/JayPHP/application_statuses/git/commits{/sha}","comments_url":"https://api.github.com/repos/JayPHP/application_statuses/comments{/number}","issue_comment_url":"https://api.github.com/repos/JayPHP/application_statuses/issues/comments{/number}","contents_url":"https://api.github.com/repos/JayPHP/application_statuses/contents/{+path}","compare_url":"https://api.github.com/repos/JayPHP/application_statuses/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JayPHP/application_statuses/merges","archive_url":"https://api.github.com/repos/JayPHP/application_statuses/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JayPHP/application_statuses/downloads","issues_url":"https://api.github.com/repos/JayPHP/application_statuses/issues{/number}","pulls_url":"https://api.github.com/repos/JayPHP/application_statuses/pulls{/number}","milestones_url":"https://api.github.com/repos/JayPHP/application_statuses/milestones{/number}","notifications_url":"https://api.github.com/repos/JayPHP/application_statuses/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JayPHP/application_statuses/labels{/name}","releases_url":"https://api.github.com/repos/JayPHP/application_statuses/releases{/id}","deployments_url":"https://api.github.com/repos/JayPHP/application_statuses/deployments","created_at":"2016-07-01T08:28:51Z","updated_at":"2016-07-01T08:32:22Z","pushed_at":"2016-07-01T08:54:24Z","git_url":"git://github.com/JayPHP/application_statuses.git","ssh_url":"git@github.com:JayPHP/application_statuses.git","clone_url":"https://github.com/JayPHP/application_statuses.git","svn_url":"https://github.com/JayPHP/application_statuses","homepage":null,"size":0,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JayPHP/application_statuses/pulls/1"},"html":{"href":"https://github.com/JayPHP/application_statuses/pull/1"},"issue":{"href":"https://api.github.com/repos/JayPHP/application_statuses/issues/1"},"comments":{"href":"https://api.github.com/repos/JayPHP/application_statuses/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/JayPHP/application_statuses/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/JayPHP/application_statuses/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JayPHP/application_statuses/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/JayPHP/application_statuses/statuses/fb47a5252023e867f9005c7a2a52cce3b2864dda"}}}}
{"actor":{"display_login":"stickler-ci"}}