{"action":"created","comment":{"url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/pulls/comments/235428846","pull_request_review_id":177291488,"id":235428846,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNTQyODg0Ng==","diff_hunk":"@@ -45,21 +46,30 @@ public function behaviors()\n      * Lists all Issue models.\n      * @return mixed\n      */\n-    public function actionIndex()\n+    public function actionIndex($viewYours = false)\n     {\n         $params = Yii::$app->request->queryParams;\n         $searchModel = new IssueSearch();\n         $dataProvider = $searchModel->search($params);\n+        \n+        if ($viewYours) {\n+            $params['viewYours'] = true;\n+        }\n \n         $countYours = Issue::find()->where(['user_id' => Yii::$app->user->identity->id])->count();\n         $countNew = Issue::getNewIssuesCount();\n+        \n+        $maxIssueSetting = Setting::findOne(['key' => 'issue_quantity_value_per_one_rating']);","path":"controllers/IssueController.php","position":26,"original_position":26,"commit_id":"19d6562d4a00fa61a9e33f8d23b251038eb515d8","original_commit_id":"19d6562d4a00fa61a9e33f8d23b251038eb515d8","user":{"login":"codeclimate[bot]","id":36754821,"node_id":"MDM6Qm90MzY3NTQ4MjE=","avatar_url":"https://avatars0.githubusercontent.com/in/9403?v=4","gravatar_id":"","url":"https://api.github.com/users/codeclimate%5Bbot%5D","html_url":"https://github.com/apps/codeclimate","followers_url":"https://api.github.com/users/codeclimate%5Bbot%5D/followers","following_url":"https://api.github.com/users/codeclimate%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/codeclimate%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/codeclimate%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeclimate%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/codeclimate%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/codeclimate%5Bbot%5D/repos","events_url":"https://api.github.com/users/codeclimate%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/codeclimate%5Bbot%5D/received_events","type":"Bot","site_admin":false},"body":"Static call to undeclared method `\\app\\models\\Setting::findOne`","created_at":"2018-11-21T15:20:31Z","updated_at":"2018-11-21T15:20:32Z","html_url":"https://github.com/opensourcewebsite-org/opensourcewebsite-org/pull/95#discussion_r235428846","pull_request_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/pulls/95","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/pulls/comments/235428846"},"html":{"href":"https://github.com/opensourcewebsite-org/opensourcewebsite-org/pull/95#discussion_r235428846"},"pull_request":{"href":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/pulls/95"}}},"pull_request":{"url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/pulls/95","id":232681237,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMyNjgxMjM3","html_url":"https://github.com/opensourcewebsite-org/opensourcewebsite-org/pull/95","diff_url":"https://github.com/opensourcewebsite-org/opensourcewebsite-org/pull/95.diff","patch_url":"https://github.com/opensourcewebsite-org/opensourcewebsite-org/pull/95.patch","issue_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/issues/95","number":95,"state":"open","locked":false,"title":"adds migration to update settings table and removes unwanted code","user":{"login":"HenonoaH","id":32451863,"node_id":"MDQ6VXNlcjMyNDUxODYz","avatar_url":"https://avatars0.githubusercontent.com/u/32451863?v=4","gravatar_id":"","url":"https://api.github.com/users/HenonoaH","html_url":"https://github.com/HenonoaH","followers_url":"https://api.github.com/users/HenonoaH/followers","following_url":"https://api.github.com/users/HenonoaH/following{/other_user}","gists_url":"https://api.github.com/users/HenonoaH/gists{/gist_id}","starred_url":"https://api.github.com/users/HenonoaH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HenonoaH/subscriptions","organizations_url":"https://api.github.com/users/HenonoaH/orgs","repos_url":"https://api.github.com/users/HenonoaH/repos","events_url":"https://api.github.com/users/HenonoaH/events{/privacy}","received_events_url":"https://api.github.com/users/HenonoaH/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-21T14:22:44Z","updated_at":"2018-11-21T15:20:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1cbd51f0eebbeddcfdecd63a82419c1c1dbcc5b2","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/pulls/95/commits","review_comments_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/pulls/95/comments","review_comment_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/pulls/comments{/number}","comments_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/issues/95/comments","statuses_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/statuses/19d6562d4a00fa61a9e33f8d23b251038eb515d8","head":{"label":"HenonoaH:setting-page","ref":"setting-page","sha":"19d6562d4a00fa61a9e33f8d23b251038eb515d8","user":{"login":"HenonoaH","id":32451863,"node_id":"MDQ6VXNlcjMyNDUxODYz","avatar_url":"https://avatars0.githubusercontent.com/u/32451863?v=4","gravatar_id":"","url":"https://api.github.com/users/HenonoaH","html_url":"https://github.com/HenonoaH","followers_url":"https://api.github.com/users/HenonoaH/followers","following_url":"https://api.github.com/users/HenonoaH/following{/other_user}","gists_url":"https://api.github.com/users/HenonoaH/gists{/gist_id}","starred_url":"https://api.github.com/users/HenonoaH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HenonoaH/subscriptions","organizations_url":"https://api.github.com/users/HenonoaH/orgs","repos_url":"https://api.github.com/users/HenonoaH/repos","events_url":"https://api.github.com/users/HenonoaH/events{/privacy}","received_events_url":"https://api.github.com/users/HenonoaH/received_events","type":"User","site_admin":false},"repo":{"id":144995165,"node_id":"MDEwOlJlcG9zaXRvcnkxNDQ5OTUxNjU=","name":"opensourcewebsite-org","full_name":"HenonoaH/opensourcewebsite-org","private":false,"owner":{"login":"HenonoaH","id":32451863,"node_id":"MDQ6VXNlcjMyNDUxODYz","avatar_url":"https://avatars0.githubusercontent.com/u/32451863?v=4","gravatar_id":"","url":"https://api.github.com/users/HenonoaH","html_url":"https://github.com/HenonoaH","followers_url":"https://api.github.com/users/HenonoaH/followers","following_url":"https://api.github.com/users/HenonoaH/following{/other_user}","gists_url":"https://api.github.com/users/HenonoaH/gists{/gist_id}","starred_url":"https://api.github.com/users/HenonoaH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HenonoaH/subscriptions","organizations_url":"https://api.github.com/users/HenonoaH/orgs","repos_url":"https://api.github.com/users/HenonoaH/repos","events_url":"https://api.github.com/users/HenonoaH/events{/privacy}","received_events_url":"https://api.github.com/users/HenonoaH/received_events","type":"User","site_admin":false},"html_url":"https://github.com/HenonoaH/opensourcewebsite-org","description":"OpenSourceWebsite (OSW) is an open source website for the world's largest online social community, and is available for free on Live Website (https://opensourcewebsite.org).","fork":true,"url":"https://api.github.com/repos/HenonoaH/opensourcewebsite-org","forks_url":"https://api.github.com/repos/HenonoaH/opensourcewebsite-org/forks","keys_url":"https://api.github.com/repos/HenonoaH/opensourcewebsite-org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HenonoaH/opensourcewebsite-org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HenonoaH/opensourcewebsite-org/teams","hooks_url":"https://api.github.com/repos/HenonoaH/opensourcewebsite-org/hooks","issue_events_url":"https://api.github.com/repos/HenonoaH/opensourcewebsite-org/issues/events{/number}","events_url":"https://api.github.com/repos/HenonoaH/opensourcewebsite-org/events","assignees_url":"https://api.github.com/repos/HenonoaH/opensourcewebsite-org/assignees{/user}","branches_url":"https://api.github.com/repos/HenonoaH/opensourcewebsite-org/branches{/branch}","tags_url":"https://api.github.com/repos/HenonoaH/opensourcewebsite-org/tags","blobs_url":"https://api.github.com/repos/HenonoaH/opensourcewebsite-org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HenonoaH/opensourcewebsite-org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HenonoaH/opensourcewebsite-org/git/refs{/sha}","trees_url":"https://api.github.com/repos/HenonoaH/opensourcewebsite-org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HenonoaH/opensourcewebsite-org/statuses/{sha}","languages_url":"https://api.github.com/repos/HenonoaH/opensourcewebsite-org/languages","stargazers_url":"https://api.github.com/repos/HenonoaH/opensourcewebsite-org/stargazers","contributors_url":"https://api.github.com/repos/HenonoaH/opensourcewebsite-org/contributors","subscribers_url":"https://api.github.com/repos/HenonoaH/opensourcewebsite-org/subscribers","subscription_url":"https://api.github.com/repos/HenonoaH/opensourcewebsite-org/subscription","commits_url":"https://api.github.com/repos/HenonoaH/opensourcewebsite-org/commits{/sha}","git_commits_url":"https://api.github.com/repos/HenonoaH/opensourcewebsite-org/git/commits{/sha}","comments_url":"https://api.github.com/repos/HenonoaH/opensourcewebsite-org/comments{/number}","issue_comment_url":"https://api.github.com/repos/HenonoaH/opensourcewebsite-org/issues/comments{/number}","contents_url":"https://api.github.com/repos/HenonoaH/opensourcewebsite-org/contents/{+path}","compare_url":"https://api.github.com/repos/HenonoaH/opensourcewebsite-org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HenonoaH/opensourcewebsite-org/merges","archive_url":"https://api.github.com/repos/HenonoaH/opensourcewebsite-org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HenonoaH/opensourcewebsite-org/downloads","issues_url":"https://api.github.com/repos/HenonoaH/opensourcewebsite-org/issues{/number}","pulls_url":"https://api.github.com/repos/HenonoaH/opensourcewebsite-org/pulls{/number}","milestones_url":"https://api.github.com/repos/HenonoaH/opensourcewebsite-org/milestones{/number}","notifications_url":"https://api.github.com/repos/HenonoaH/opensourcewebsite-org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HenonoaH/opensourcewebsite-org/labels{/name}","releases_url":"https://api.github.com/repos/HenonoaH/opensourcewebsite-org/releases{/id}","deployments_url":"https://api.github.com/repos/HenonoaH/opensourcewebsite-org/deployments","created_at":"2018-08-16T13:57:22Z","updated_at":"2018-11-20T14:06:44Z","pushed_at":"2018-11-21T15:19:05Z","git_url":"git://github.com/HenonoaH/opensourcewebsite-org.git","ssh_url":"git@github.com:HenonoaH/opensourcewebsite-org.git","clone_url":"https://github.com/HenonoaH/opensourcewebsite-org.git","svn_url":"https://github.com/HenonoaH/opensourcewebsite-org","homepage":null,"size":498,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"opensourcewebsite-org:master","ref":"master","sha":"1010b043424c959a8e1cc23f959d3d46d10c7f1c","user":{"login":"opensourcewebsite-org","id":42433667,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyNDMzNjY3","avatar_url":"https://avatars1.githubusercontent.com/u/42433667?v=4","gravatar_id":"","url":"https://api.github.com/users/opensourcewebsite-org","html_url":"https://github.com/opensourcewebsite-org","followers_url":"https://api.github.com/users/opensourcewebsite-org/followers","following_url":"https://api.github.com/users/opensourcewebsite-org/following{/other_user}","gists_url":"https://api.github.com/users/opensourcewebsite-org/gists{/gist_id}","starred_url":"https://api.github.com/users/opensourcewebsite-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opensourcewebsite-org/subscriptions","organizations_url":"https://api.github.com/users/opensourcewebsite-org/orgs","repos_url":"https://api.github.com/users/opensourcewebsite-org/repos","events_url":"https://api.github.com/users/opensourcewebsite-org/events{/privacy}","received_events_url":"https://api.github.com/users/opensourcewebsite-org/received_events","type":"Organization","site_admin":false},"repo":{"id":144956786,"node_id":"MDEwOlJlcG9zaXRvcnkxNDQ5NTY3ODY=","name":"opensourcewebsite-org","full_name":"opensourcewebsite-org/opensourcewebsite-org","private":false,"owner":{"login":"opensourcewebsite-org","id":42433667,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyNDMzNjY3","avatar_url":"https://avatars1.githubusercontent.com/u/42433667?v=4","gravatar_id":"","url":"https://api.github.com/users/opensourcewebsite-org","html_url":"https://github.com/opensourcewebsite-org","followers_url":"https://api.github.com/users/opensourcewebsite-org/followers","following_url":"https://api.github.com/users/opensourcewebsite-org/following{/other_user}","gists_url":"https://api.github.com/users/opensourcewebsite-org/gists{/gist_id}","starred_url":"https://api.github.com/users/opensourcewebsite-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opensourcewebsite-org/subscriptions","organizations_url":"https://api.github.com/users/opensourcewebsite-org/orgs","repos_url":"https://api.github.com/users/opensourcewebsite-org/repos","events_url":"https://api.github.com/users/opensourcewebsite-org/events{/privacy}","received_events_url":"https://api.github.com/users/opensourcewebsite-org/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/opensourcewebsite-org/opensourcewebsite-org","description":"OpenSourceWebsite (OSW) is an open source website for the world's largest online social community, and is available for free on Live Website (https://opensourcewebsite.org).","fork":false,"url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org","forks_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/forks","keys_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/teams","hooks_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/hooks","issue_events_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/issues/events{/number}","events_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/events","assignees_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/assignees{/user}","branches_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/branches{/branch}","tags_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/tags","blobs_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/git/refs{/sha}","trees_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/statuses/{sha}","languages_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/languages","stargazers_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/stargazers","contributors_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/contributors","subscribers_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/subscribers","subscription_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/subscription","commits_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/commits{/sha}","git_commits_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/git/commits{/sha}","comments_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/comments{/number}","issue_comment_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/issues/comments{/number}","contents_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/contents/{+path}","compare_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/merges","archive_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/downloads","issues_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/issues{/number}","pulls_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/pulls{/number}","milestones_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/milestones{/number}","notifications_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/labels{/name}","releases_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/releases{/id}","deployments_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/deployments","created_at":"2018-08-16T08:04:10Z","updated_at":"2018-11-20T14:00:30Z","pushed_at":"2018-11-21T15:19:07Z","git_url":"git://github.com/opensourcewebsite-org/opensourcewebsite-org.git","ssh_url":"git@github.com:opensourcewebsite-org/opensourcewebsite-org.git","clone_url":"https://github.com/opensourcewebsite-org/opensourcewebsite-org.git","svn_url":"https://github.com/opensourcewebsite-org/opensourcewebsite-org","homepage":null,"size":468,"stargazers_count":6,"watchers_count":6,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":13,"open_issues":3,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/pulls/95"},"html":{"href":"https://github.com/opensourcewebsite-org/opensourcewebsite-org/pull/95"},"issue":{"href":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/issues/95"},"comments":{"href":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/issues/95/comments"},"review_comments":{"href":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/pulls/95/comments"},"review_comment":{"href":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/pulls/95/commits"},"statuses":{"href":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/statuses/19d6562d4a00fa61a9e33f8d23b251038eb515d8"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"codeclimate"}}