{"action":"created","comment":{"url":"https://api.github.com/repos/idevelopment/Hcrm/pulls/comments/68500241","id":68500241,"diff_hunk":"@@ -0,0 +1,132 @@\n+<?php\n+\n+namespace App\\Http\\Controllers;\n+\n+use App\\Knowledge;\n+use Illuminate\\Http\\Request;\n+\n+use App\\Http\\Requests;\n+\n+/**\n+ * Class KnowledgeBaseController\n+ * @package App\\Http\\Controllers\n+ */\n+class KnowledgeBaseController extends Controller\n+{\n+    // TODO: Setup PHPUnit tests.\n+    // TODO: Setup the show method view.\n+\n+    /**\n+     * KnowledgeBaseController constructor.\n+     */\n+    public function __construct()\n+    {\n+        $this->middleware('lang');\n+        $this->middleware('auth');\n+    }\n+\n+    /**\n+     * The index view for all the knowledge questions.\n+     *\n+     * @url    GET: /knowledge\n+     * @url    GET: /knowledge/search\n+     * @param  Request $input the input collection bag.\n+     * @return \\Illuminate\\Contracts\\View\\Factory|\\Illuminate\\View\\View\n+     */\n+    public function index(Request $input)\n+    {\n+        $term = $input->get('term');\n+\n+        if (! $term) {\n+            $data['questions'] = Knowledge::paginate(15);","path":"app/Http/Controllers/KnowledgeBaseController.php","position":41,"original_position":41,"commit_id":"47f29bc2a73771660ca6446b96cead9743039b75","original_commit_id":"47f29bc2a73771660ca6446b96cead9743039b75","user":{"login":"ghermans","id":1594411,"avatar_url":"https://avatars.githubusercontent.com/u/1594411?v=3","gravatar_id":"","url":"https://api.github.com/users/ghermans","html_url":"https://github.com/ghermans","followers_url":"https://api.github.com/users/ghermans/followers","following_url":"https://api.github.com/users/ghermans/following{/other_user}","gists_url":"https://api.github.com/users/ghermans/gists{/gist_id}","starred_url":"https://api.github.com/users/ghermans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghermans/subscriptions","organizations_url":"https://api.github.com/users/ghermans/orgs","repos_url":"https://api.github.com/users/ghermans/repos","events_url":"https://api.github.com/users/ghermans/events{/privacy}","received_events_url":"https://api.github.com/users/ghermans/received_events","type":"User","site_admin":false},"body":"__[phpmd]__\n* Avoid using static access to class '\\App\\Knowledge' in method 'index'.","created_at":"2016-06-26T09:35:12Z","updated_at":"2016-06-26T09:35:12Z","html_url":"https://github.com/idevelopment/Hcrm/pull/33#discussion_r68500241","pull_request_url":"https://api.github.com/repos/idevelopment/Hcrm/pulls/33","_links":{"self":{"href":"https://api.github.com/repos/idevelopment/Hcrm/pulls/comments/68500241"},"html":{"href":"https://github.com/idevelopment/Hcrm/pull/33#discussion_r68500241"},"pull_request":{"href":"https://api.github.com/repos/idevelopment/Hcrm/pulls/33"}}},"pull_request":{"url":"https://api.github.com/repos/idevelopment/Hcrm/pulls/33","id":74376203,"html_url":"https://github.com/idevelopment/Hcrm/pull/33","diff_url":"https://github.com/idevelopment/Hcrm/pull/33.diff","patch_url":"https://github.com/idevelopment/Hcrm/pull/33.patch","issue_url":"https://api.github.com/repos/idevelopment/Hcrm/issues/33","number":33,"state":"open","locked":false,"title":"Development","user":{"login":"ghermans","id":1594411,"avatar_url":"https://avatars.githubusercontent.com/u/1594411?v=3","gravatar_id":"","url":"https://api.github.com/users/ghermans","html_url":"https://github.com/ghermans","followers_url":"https://api.github.com/users/ghermans/followers","following_url":"https://api.github.com/users/ghermans/following{/other_user}","gists_url":"https://api.github.com/users/ghermans/gists{/gist_id}","starred_url":"https://api.github.com/users/ghermans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghermans/subscriptions","organizations_url":"https://api.github.com/users/ghermans/orgs","repos_url":"https://api.github.com/users/ghermans/repos","events_url":"https://api.github.com/users/ghermans/events{/privacy}","received_events_url":"https://api.github.com/users/ghermans/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-19T22:41:35Z","updated_at":"2016-06-26T09:35:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a357cb69a8501af67a15c3c80687b8ee6eec8dbb","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/idevelopment/Hcrm/pulls/33/commits","review_comments_url":"https://api.github.com/repos/idevelopment/Hcrm/pulls/33/comments","review_comment_url":"https://api.github.com/repos/idevelopment/Hcrm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/idevelopment/Hcrm/issues/33/comments","statuses_url":"https://api.github.com/repos/idevelopment/Hcrm/statuses/47f29bc2a73771660ca6446b96cead9743039b75","head":{"label":"idevelopment:development","ref":"development","sha":"47f29bc2a73771660ca6446b96cead9743039b75","user":{"login":"idevelopment","id":14967398,"avatar_url":"https://avatars.githubusercontent.com/u/14967398?v=3","gravatar_id":"","url":"https://api.github.com/users/idevelopment","html_url":"https://github.com/idevelopment","followers_url":"https://api.github.com/users/idevelopment/followers","following_url":"https://api.github.com/users/idevelopment/following{/other_user}","gists_url":"https://api.github.com/users/idevelopment/gists{/gist_id}","starred_url":"https://api.github.com/users/idevelopment/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idevelopment/subscriptions","organizations_url":"https://api.github.com/users/idevelopment/orgs","repos_url":"https://api.github.com/users/idevelopment/repos","events_url":"https://api.github.com/users/idevelopment/events{/privacy}","received_events_url":"https://api.github.com/users/idevelopment/received_events","type":"Organization","site_admin":false},"repo":{"id":61381083,"name":"Hcrm","full_name":"idevelopment/Hcrm","owner":{"login":"idevelopment","id":14967398,"avatar_url":"https://avatars.githubusercontent.com/u/14967398?v=3","gravatar_id":"","url":"https://api.github.com/users/idevelopment","html_url":"https://github.com/idevelopment","followers_url":"https://api.github.com/users/idevelopment/followers","following_url":"https://api.github.com/users/idevelopment/following{/other_user}","gists_url":"https://api.github.com/users/idevelopment/gists{/gist_id}","starred_url":"https://api.github.com/users/idevelopment/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idevelopment/subscriptions","organizations_url":"https://api.github.com/users/idevelopment/orgs","repos_url":"https://api.github.com/users/idevelopment/repos","events_url":"https://api.github.com/users/idevelopment/events{/privacy}","received_events_url":"https://api.github.com/users/idevelopment/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/idevelopment/Hcrm","description":"Open-source CRM for hosting companies ","fork":false,"url":"https://api.github.com/repos/idevelopment/Hcrm","forks_url":"https://api.github.com/repos/idevelopment/Hcrm/forks","keys_url":"https://api.github.com/repos/idevelopment/Hcrm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/idevelopment/Hcrm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/idevelopment/Hcrm/teams","hooks_url":"https://api.github.com/repos/idevelopment/Hcrm/hooks","issue_events_url":"https://api.github.com/repos/idevelopment/Hcrm/issues/events{/number}","events_url":"https://api.github.com/repos/idevelopment/Hcrm/events","assignees_url":"https://api.github.com/repos/idevelopment/Hcrm/assignees{/user}","branches_url":"https://api.github.com/repos/idevelopment/Hcrm/branches{/branch}","tags_url":"https://api.github.com/repos/idevelopment/Hcrm/tags","blobs_url":"https://api.github.com/repos/idevelopment/Hcrm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/idevelopment/Hcrm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/idevelopment/Hcrm/git/refs{/sha}","trees_url":"https://api.github.com/repos/idevelopment/Hcrm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/idevelopment/Hcrm/statuses/{sha}","languages_url":"https://api.github.com/repos/idevelopment/Hcrm/languages","stargazers_url":"https://api.github.com/repos/idevelopment/Hcrm/stargazers","contributors_url":"https://api.github.com/repos/idevelopment/Hcrm/contributors","subscribers_url":"https://api.github.com/repos/idevelopment/Hcrm/subscribers","subscription_url":"https://api.github.com/repos/idevelopment/Hcrm/subscription","commits_url":"https://api.github.com/repos/idevelopment/Hcrm/commits{/sha}","git_commits_url":"https://api.github.com/repos/idevelopment/Hcrm/git/commits{/sha}","comments_url":"https://api.github.com/repos/idevelopment/Hcrm/comments{/number}","issue_comment_url":"https://api.github.com/repos/idevelopment/Hcrm/issues/comments{/number}","contents_url":"https://api.github.com/repos/idevelopment/Hcrm/contents/{+path}","compare_url":"https://api.github.com/repos/idevelopment/Hcrm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/idevelopment/Hcrm/merges","archive_url":"https://api.github.com/repos/idevelopment/Hcrm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/idevelopment/Hcrm/downloads","issues_url":"https://api.github.com/repos/idevelopment/Hcrm/issues{/number}","pulls_url":"https://api.github.com/repos/idevelopment/Hcrm/pulls{/number}","milestones_url":"https://api.github.com/repos/idevelopment/Hcrm/milestones{/number}","notifications_url":"https://api.github.com/repos/idevelopment/Hcrm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/idevelopment/Hcrm/labels{/name}","releases_url":"https://api.github.com/repos/idevelopment/Hcrm/releases{/id}","deployments_url":"https://api.github.com/repos/idevelopment/Hcrm/deployments","created_at":"2016-06-17T14:49:28Z","updated_at":"2016-06-17T20:38:58Z","pushed_at":"2016-06-26T09:34:18Z","git_url":"git://github.com/idevelopment/Hcrm.git","ssh_url":"git@github.com:idevelopment/Hcrm.git","clone_url":"https://github.com/idevelopment/Hcrm.git","svn_url":"https://github.com/idevelopment/Hcrm","homepage":null,"size":355,"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":17,"forks":0,"open_issues":17,"watchers":0,"default_branch":"master"}},"base":{"label":"idevelopment:master","ref":"master","sha":"c6a7e6acefb625714805bde80a41d873237149e6","user":{"login":"idevelopment","id":14967398,"avatar_url":"https://avatars.githubusercontent.com/u/14967398?v=3","gravatar_id":"","url":"https://api.github.com/users/idevelopment","html_url":"https://github.com/idevelopment","followers_url":"https://api.github.com/users/idevelopment/followers","following_url":"https://api.github.com/users/idevelopment/following{/other_user}","gists_url":"https://api.github.com/users/idevelopment/gists{/gist_id}","starred_url":"https://api.github.com/users/idevelopment/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idevelopment/subscriptions","organizations_url":"https://api.github.com/users/idevelopment/orgs","repos_url":"https://api.github.com/users/idevelopment/repos","events_url":"https://api.github.com/users/idevelopment/events{/privacy}","received_events_url":"https://api.github.com/users/idevelopment/received_events","type":"Organization","site_admin":false},"repo":{"id":61381083,"name":"Hcrm","full_name":"idevelopment/Hcrm","owner":{"login":"idevelopment","id":14967398,"avatar_url":"https://avatars.githubusercontent.com/u/14967398?v=3","gravatar_id":"","url":"https://api.github.com/users/idevelopment","html_url":"https://github.com/idevelopment","followers_url":"https://api.github.com/users/idevelopment/followers","following_url":"https://api.github.com/users/idevelopment/following{/other_user}","gists_url":"https://api.github.com/users/idevelopment/gists{/gist_id}","starred_url":"https://api.github.com/users/idevelopment/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idevelopment/subscriptions","organizations_url":"https://api.github.com/users/idevelopment/orgs","repos_url":"https://api.github.com/users/idevelopment/repos","events_url":"https://api.github.com/users/idevelopment/events{/privacy}","received_events_url":"https://api.github.com/users/idevelopment/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/idevelopment/Hcrm","description":"Open-source CRM for hosting companies ","fork":false,"url":"https://api.github.com/repos/idevelopment/Hcrm","forks_url":"https://api.github.com/repos/idevelopment/Hcrm/forks","keys_url":"https://api.github.com/repos/idevelopment/Hcrm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/idevelopment/Hcrm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/idevelopment/Hcrm/teams","hooks_url":"https://api.github.com/repos/idevelopment/Hcrm/hooks","issue_events_url":"https://api.github.com/repos/idevelopment/Hcrm/issues/events{/number}","events_url":"https://api.github.com/repos/idevelopment/Hcrm/events","assignees_url":"https://api.github.com/repos/idevelopment/Hcrm/assignees{/user}","branches_url":"https://api.github.com/repos/idevelopment/Hcrm/branches{/branch}","tags_url":"https://api.github.com/repos/idevelopment/Hcrm/tags","blobs_url":"https://api.github.com/repos/idevelopment/Hcrm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/idevelopment/Hcrm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/idevelopment/Hcrm/git/refs{/sha}","trees_url":"https://api.github.com/repos/idevelopment/Hcrm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/idevelopment/Hcrm/statuses/{sha}","languages_url":"https://api.github.com/repos/idevelopment/Hcrm/languages","stargazers_url":"https://api.github.com/repos/idevelopment/Hcrm/stargazers","contributors_url":"https://api.github.com/repos/idevelopment/Hcrm/contributors","subscribers_url":"https://api.github.com/repos/idevelopment/Hcrm/subscribers","subscription_url":"https://api.github.com/repos/idevelopment/Hcrm/subscription","commits_url":"https://api.github.com/repos/idevelopment/Hcrm/commits{/sha}","git_commits_url":"https://api.github.com/repos/idevelopment/Hcrm/git/commits{/sha}","comments_url":"https://api.github.com/repos/idevelopment/Hcrm/comments{/number}","issue_comment_url":"https://api.github.com/repos/idevelopment/Hcrm/issues/comments{/number}","contents_url":"https://api.github.com/repos/idevelopment/Hcrm/contents/{+path}","compare_url":"https://api.github.com/repos/idevelopment/Hcrm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/idevelopment/Hcrm/merges","archive_url":"https://api.github.com/repos/idevelopment/Hcrm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/idevelopment/Hcrm/downloads","issues_url":"https://api.github.com/repos/idevelopment/Hcrm/issues{/number}","pulls_url":"https://api.github.com/repos/idevelopment/Hcrm/pulls{/number}","milestones_url":"https://api.github.com/repos/idevelopment/Hcrm/milestones{/number}","notifications_url":"https://api.github.com/repos/idevelopment/Hcrm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/idevelopment/Hcrm/labels{/name}","releases_url":"https://api.github.com/repos/idevelopment/Hcrm/releases{/id}","deployments_url":"https://api.github.com/repos/idevelopment/Hcrm/deployments","created_at":"2016-06-17T14:49:28Z","updated_at":"2016-06-17T20:38:58Z","pushed_at":"2016-06-26T09:34:18Z","git_url":"git://github.com/idevelopment/Hcrm.git","ssh_url":"git@github.com:idevelopment/Hcrm.git","clone_url":"https://github.com/idevelopment/Hcrm.git","svn_url":"https://github.com/idevelopment/Hcrm","homepage":null,"size":355,"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":17,"forks":0,"open_issues":17,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/idevelopment/Hcrm/pulls/33"},"html":{"href":"https://github.com/idevelopment/Hcrm/pull/33"},"issue":{"href":"https://api.github.com/repos/idevelopment/Hcrm/issues/33"},"comments":{"href":"https://api.github.com/repos/idevelopment/Hcrm/issues/33/comments"},"review_comments":{"href":"https://api.github.com/repos/idevelopment/Hcrm/pulls/33/comments"},"review_comment":{"href":"https://api.github.com/repos/idevelopment/Hcrm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/idevelopment/Hcrm/pulls/33/commits"},"statuses":{"href":"https://api.github.com/repos/idevelopment/Hcrm/statuses/47f29bc2a73771660ca6446b96cead9743039b75"}}}}
{"actor":{"display_login":"ghermans"}}