{"action":"created","comment":{"url":"https://api.github.com/repos/StyleCI/StyleCI/pulls/comments/23126028","id":23126028,"diff_hunk":"@@ -0,0 +1,38 @@\n+<?php\n+\n+/*\n+ * This file is part of StyleCI.\n+ *\n+ * (c) Graham Campbell <graham@mineuk.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\\Http\\Controllers;\n+\n+use Illuminate\\Http\\Redirect;\n+use Illuminate\\Routing\\Controller;\n+use StyleCI\\StyleCI\\Models\\Repo;\n+\n+class RepoController extends Controller\n+{\n+    public function accountRepo($account, $repository)\n+    {\n+        return Redirect::to('repos/'.sha1(\"$account/$repository\"));\n+    }\n+\n+    public function repos()\n+    {\n+        $repos = Repo::orderBy('name', 'asc')->take(50)->get();\n+\n+        return view('repos', compact('repos'));","path":"app/Http/Controllers/RepoController.php","position":34,"original_position":29,"commit_id":"8887f937a6ed3fb05d5bea07fdc0206cb1709216","original_commit_id":"7fb69f35f4953af8cfb76c653b8915d74a82d6e4","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":"You're looking at the wrong file probably. https://github.com/laravel/framework/blob/master/src/Illuminate/View/Factory.php#L139","created_at":"2015-01-17T15:41:25Z","updated_at":"2015-01-17T15:41:25Z","html_url":"https://github.com/StyleCI/StyleCI/pull/25#discussion_r23126028","pull_request_url":"https://api.github.com/repos/StyleCI/StyleCI/pulls/25","_links":{"self":{"href":"https://api.github.com/repos/StyleCI/StyleCI/pulls/comments/23126028"},"html":{"href":"https://github.com/StyleCI/StyleCI/pull/25#discussion_r23126028"},"pull_request":{"href":"https://api.github.com/repos/StyleCI/StyleCI/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/StyleCI/StyleCI/pulls/25","id":27557869,"html_url":"https://github.com/StyleCI/StyleCI/pull/25","diff_url":"https://github.com/StyleCI/StyleCI/pull/25.diff","patch_url":"https://github.com/StyleCI/StyleCI/pull/25.patch","issue_url":"https://api.github.com/repos/StyleCI/StyleCI/issues/25","number":25,"state":"open","locked":false,"title":"Move all route clousres into controllers.","user":{"login":"jbrooksuk","id":246103,"avatar_url":"https://avatars.githubusercontent.com/u/246103?v=3","gravatar_id":"","url":"https://api.github.com/users/jbrooksuk","html_url":"https://github.com/jbrooksuk","followers_url":"https://api.github.com/users/jbrooksuk/followers","following_url":"https://api.github.com/users/jbrooksuk/following{/other_user}","gists_url":"https://api.github.com/users/jbrooksuk/gists{/gist_id}","starred_url":"https://api.github.com/users/jbrooksuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbrooksuk/subscriptions","organizations_url":"https://api.github.com/users/jbrooksuk/orgs","repos_url":"https://api.github.com/users/jbrooksuk/repos","events_url":"https://api.github.com/users/jbrooksuk/events{/privacy}","received_events_url":"https://api.github.com/users/jbrooksuk/received_events","type":"User","site_admin":false},"body":"This should do #15 for you @GrahamCampbell.","created_at":"2015-01-17T15:18:39Z","updated_at":"2015-01-17T15:41:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8494724aec89916b509b99817e75a942e195a414","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/StyleCI/StyleCI/pulls/25/commits","review_comments_url":"https://api.github.com/repos/StyleCI/StyleCI/pulls/25/comments","review_comment_url":"https://api.github.com/repos/StyleCI/StyleCI/pulls/comments/{number}","comments_url":"https://api.github.com/repos/StyleCI/StyleCI/issues/25/comments","statuses_url":"https://api.github.com/repos/StyleCI/StyleCI/statuses/8887f937a6ed3fb05d5bea07fdc0206cb1709216","head":{"label":"JamesForks:route-controllers","ref":"route-controllers","sha":"8887f937a6ed3fb05d5bea07fdc0206cb1709216","user":{"login":"JamesForks","id":10262020,"avatar_url":"https://avatars.githubusercontent.com/u/10262020?v=3","gravatar_id":"","url":"https://api.github.com/users/JamesForks","html_url":"https://github.com/JamesForks","followers_url":"https://api.github.com/users/JamesForks/followers","following_url":"https://api.github.com/users/JamesForks/following{/other_user}","gists_url":"https://api.github.com/users/JamesForks/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesForks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesForks/subscriptions","organizations_url":"https://api.github.com/users/JamesForks/orgs","repos_url":"https://api.github.com/users/JamesForks/repos","events_url":"https://api.github.com/users/JamesForks/events{/privacy}","received_events_url":"https://api.github.com/users/JamesForks/received_events","type":"Organization","site_admin":false},"repo":{"id":29203019,"name":"StyleCI","full_name":"JamesForks/StyleCI","owner":{"login":"JamesForks","id":10262020,"avatar_url":"https://avatars.githubusercontent.com/u/10262020?v=3","gravatar_id":"","url":"https://api.github.com/users/JamesForks","html_url":"https://github.com/JamesForks","followers_url":"https://api.github.com/users/JamesForks/followers","following_url":"https://api.github.com/users/JamesForks/following{/other_user}","gists_url":"https://api.github.com/users/JamesForks/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesForks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesForks/subscriptions","organizations_url":"https://api.github.com/users/JamesForks/orgs","repos_url":"https://api.github.com/users/JamesForks/repos","events_url":"https://api.github.com/users/JamesForks/events{/privacy}","received_events_url":"https://api.github.com/users/JamesForks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/JamesForks/StyleCI","description":"A PHP coding style continuous integration service","fork":true,"url":"https://api.github.com/repos/JamesForks/StyleCI","forks_url":"https://api.github.com/repos/JamesForks/StyleCI/forks","keys_url":"https://api.github.com/repos/JamesForks/StyleCI/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JamesForks/StyleCI/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JamesForks/StyleCI/teams","hooks_url":"https://api.github.com/repos/JamesForks/StyleCI/hooks","issue_events_url":"https://api.github.com/repos/JamesForks/StyleCI/issues/events{/number}","events_url":"https://api.github.com/repos/JamesForks/StyleCI/events","assignees_url":"https://api.github.com/repos/JamesForks/StyleCI/assignees{/user}","branches_url":"https://api.github.com/repos/JamesForks/StyleCI/branches{/branch}","tags_url":"https://api.github.com/repos/JamesForks/StyleCI/tags","blobs_url":"https://api.github.com/repos/JamesForks/StyleCI/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JamesForks/StyleCI/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JamesForks/StyleCI/git/refs{/sha}","trees_url":"https://api.github.com/repos/JamesForks/StyleCI/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JamesForks/StyleCI/statuses/{sha}","languages_url":"https://api.github.com/repos/JamesForks/StyleCI/languages","stargazers_url":"https://api.github.com/repos/JamesForks/StyleCI/stargazers","contributors_url":"https://api.github.com/repos/JamesForks/StyleCI/contributors","subscribers_url":"https://api.github.com/repos/JamesForks/StyleCI/subscribers","subscription_url":"https://api.github.com/repos/JamesForks/StyleCI/subscription","commits_url":"https://api.github.com/repos/JamesForks/StyleCI/commits{/sha}","git_commits_url":"https://api.github.com/repos/JamesForks/StyleCI/git/commits{/sha}","comments_url":"https://api.github.com/repos/JamesForks/StyleCI/comments{/number}","issue_comment_url":"https://api.github.com/repos/JamesForks/StyleCI/issues/comments/{number}","contents_url":"https://api.github.com/repos/JamesForks/StyleCI/contents/{+path}","compare_url":"https://api.github.com/repos/JamesForks/StyleCI/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JamesForks/StyleCI/merges","archive_url":"https://api.github.com/repos/JamesForks/StyleCI/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JamesForks/StyleCI/downloads","issues_url":"https://api.github.com/repos/JamesForks/StyleCI/issues{/number}","pulls_url":"https://api.github.com/repos/JamesForks/StyleCI/pulls{/number}","milestones_url":"https://api.github.com/repos/JamesForks/StyleCI/milestones{/number}","notifications_url":"https://api.github.com/repos/JamesForks/StyleCI/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JamesForks/StyleCI/labels{/name}","releases_url":"https://api.github.com/repos/JamesForks/StyleCI/releases{/id}","created_at":"2015-01-13T17:54:24Z","updated_at":"2015-01-17T15:25:17Z","pushed_at":"2015-01-17T15:35:12Z","git_url":"git://github.com/JamesForks/StyleCI.git","ssh_url":"git@github.com:JamesForks/StyleCI.git","clone_url":"https://github.com/JamesForks/StyleCI.git","svn_url":"https://github.com/JamesForks/StyleCI","homepage":"https://styleci.grahamjcampbell.co.uk/","size":839,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"StyleCI:master","ref":"master","sha":"681fb35141ab787edd98ab067d55c2a07feefd7d","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-01-17T15:31:09Z","pushed_at":"2015-01-17T15:31:09Z","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.grahamjcampbell.co.uk/","size":1211,"stargazers_count":15,"watchers_count":15,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":9,"forks":2,"open_issues":9,"watchers":15,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/StyleCI/StyleCI/pulls/25"},"html":{"href":"https://github.com/StyleCI/StyleCI/pull/25"},"issue":{"href":"https://api.github.com/repos/StyleCI/StyleCI/issues/25"},"comments":{"href":"https://api.github.com/repos/StyleCI/StyleCI/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/StyleCI/StyleCI/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/StyleCI/StyleCI/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/StyleCI/StyleCI/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/StyleCI/StyleCI/statuses/8887f937a6ed3fb05d5bea07fdc0206cb1709216"}}}}