{"action":"created","comment":{"url":"https://api.github.com/repos/laravel/framework/pulls/comments/43999559","id":43999559,"diff_hunk":"@@ -18,7 +18,7 @@ class DummyClass extends Command\n      *\n      * @var string\n      */\n-    protected $description = 'Command description.';\n+    protected $description = 'Command description';","path":"src/Illuminate/Foundation/Console/stubs/console.stub","position":5,"original_position":5,"commit_id":"f97ce0c3a6847501e80bd73842cbb6da36011e52","original_commit_id":"f97ce0c3a6847501e80bd73842cbb6da36011e52","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":"please don't change that","created_at":"2015-11-05T11:03:01Z","updated_at":"2015-11-05T11:03:01Z","html_url":"https://github.com/laravel/framework/pull/10816#discussion_r43999559","pull_request_url":"https://api.github.com/repos/laravel/framework/pulls/10816","_links":{"self":{"href":"https://api.github.com/repos/laravel/framework/pulls/comments/43999559"},"html":{"href":"https://github.com/laravel/framework/pull/10816#discussion_r43999559"},"pull_request":{"href":"https://api.github.com/repos/laravel/framework/pulls/10816"}}},"pull_request":{"url":"https://api.github.com/repos/laravel/framework/pulls/10816","id":49809305,"html_url":"https://github.com/laravel/framework/pull/10816","diff_url":"https://github.com/laravel/framework/pull/10816.diff","patch_url":"https://github.com/laravel/framework/pull/10816.patch","issue_url":"https://api.github.com/repos/laravel/framework/issues/10816","number":10816,"state":"open","locked":false,"title":"Arr.php - new helper functions","user":{"login":"yeexel","id":2012693,"avatar_url":"https://avatars.githubusercontent.com/u/2012693?v=3","gravatar_id":"","url":"https://api.github.com/users/yeexel","html_url":"https://github.com/yeexel","followers_url":"https://api.github.com/users/yeexel/followers","following_url":"https://api.github.com/users/yeexel/following{/other_user}","gists_url":"https://api.github.com/users/yeexel/gists{/gist_id}","starred_url":"https://api.github.com/users/yeexel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yeexel/subscriptions","organizations_url":"https://api.github.com/users/yeexel/orgs","repos_url":"https://api.github.com/users/yeexel/repos","events_url":"https://api.github.com/users/yeexel/events{/privacy}","received_events_url":"https://api.github.com/users/yeexel/received_events","type":"User","site_admin":false},"body":"**Arr::getIndexedByKeys**\r\n\r\n*Test data*\r\n\r\n    $data = [\r\n        ['rating' => 5, 'stars' => 5, 'language' => 'php'],\r\n        ['rating' => 5, 'stars' => 6, 'language' => 'js'],\r\n        ['rating' => 4, 'stars' => 4, 'language' => 'css'],\r\n    ];\r\n\r\n*Result*\r\n\r\n    Arr::getIndexedByKeys($data, ['rating', 'stars'])\r\n\r\n    [\r\n        5 => [\r\n            5 => ['rating' => 5, 'stars' => 5, 'language' => 'php'],\r\n            6 => ['rating' => 5, 'stars' => 6, 'language' => 'js'],\r\n        ],\r\n        4 => [\r\n            4 => ['rating' => 4, 'stars' => 4, 'language' => 'css'],\r\n        ],\r\n    ]\r\n\r\n**Arr::getIndexedValues**\r\n\r\n*Test data*\r\n\r\n    $data = [\r\n        ['rating' => 5, 'stars' => 5, 'language' => 'php'],\r\n        ['rating' => 5, 'stars' => 6, 'language' => 'js'],\r\n        ['rating' => 4, 'stars' => 4, 'language' => 'css'],\r\n    ];\r\n\r\n*Result*\r\n\r\n    Arr::getIndexedValues($data, 'language', 'stars')\r\n\r\n    ['php' => 5, 'js' => 6, 'css' => 4]\r\n\r\n    Arr::getIndexedValues($data, 'language', ['stars', 'rating'])\r\n\r\n    [\r\n        'php' => ['stars' => 5, 'rating' => 5],\r\n        'js'    => ['stars' => 6, 'rating' => 5],\r\n        'css' => ['stars' => 4, 'rating' => 4],\r\n    ]","created_at":"2015-11-05T11:01:57Z","updated_at":"2015-11-05T11:03:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7f2cdfbcaece6cf611d2942af12290e53fa71dc6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/laravel/framework/pulls/10816/commits","review_comments_url":"https://api.github.com/repos/laravel/framework/pulls/10816/comments","review_comment_url":"https://api.github.com/repos/laravel/framework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/laravel/framework/issues/10816/comments","statuses_url":"https://api.github.com/repos/laravel/framework/statuses/f97ce0c3a6847501e80bd73842cbb6da36011e52","head":{"label":"yeexel:array_helper_functions","ref":"array_helper_functions","sha":"f97ce0c3a6847501e80bd73842cbb6da36011e52","user":{"login":"yeexel","id":2012693,"avatar_url":"https://avatars.githubusercontent.com/u/2012693?v=3","gravatar_id":"","url":"https://api.github.com/users/yeexel","html_url":"https://github.com/yeexel","followers_url":"https://api.github.com/users/yeexel/followers","following_url":"https://api.github.com/users/yeexel/following{/other_user}","gists_url":"https://api.github.com/users/yeexel/gists{/gist_id}","starred_url":"https://api.github.com/users/yeexel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yeexel/subscriptions","organizations_url":"https://api.github.com/users/yeexel/orgs","repos_url":"https://api.github.com/users/yeexel/repos","events_url":"https://api.github.com/users/yeexel/events{/privacy}","received_events_url":"https://api.github.com/users/yeexel/received_events","type":"User","site_admin":false},"repo":{"id":45602079,"name":"framework","full_name":"yeexel/framework","owner":{"login":"yeexel","id":2012693,"avatar_url":"https://avatars.githubusercontent.com/u/2012693?v=3","gravatar_id":"","url":"https://api.github.com/users/yeexel","html_url":"https://github.com/yeexel","followers_url":"https://api.github.com/users/yeexel/followers","following_url":"https://api.github.com/users/yeexel/following{/other_user}","gists_url":"https://api.github.com/users/yeexel/gists{/gist_id}","starred_url":"https://api.github.com/users/yeexel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yeexel/subscriptions","organizations_url":"https://api.github.com/users/yeexel/orgs","repos_url":"https://api.github.com/users/yeexel/repos","events_url":"https://api.github.com/users/yeexel/events{/privacy}","received_events_url":"https://api.github.com/users/yeexel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yeexel/framework","description":"","fork":true,"url":"https://api.github.com/repos/yeexel/framework","forks_url":"https://api.github.com/repos/yeexel/framework/forks","keys_url":"https://api.github.com/repos/yeexel/framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yeexel/framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yeexel/framework/teams","hooks_url":"https://api.github.com/repos/yeexel/framework/hooks","issue_events_url":"https://api.github.com/repos/yeexel/framework/issues/events{/number}","events_url":"https://api.github.com/repos/yeexel/framework/events","assignees_url":"https://api.github.com/repos/yeexel/framework/assignees{/user}","branches_url":"https://api.github.com/repos/yeexel/framework/branches{/branch}","tags_url":"https://api.github.com/repos/yeexel/framework/tags","blobs_url":"https://api.github.com/repos/yeexel/framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yeexel/framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yeexel/framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/yeexel/framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yeexel/framework/statuses/{sha}","languages_url":"https://api.github.com/repos/yeexel/framework/languages","stargazers_url":"https://api.github.com/repos/yeexel/framework/stargazers","contributors_url":"https://api.github.com/repos/yeexel/framework/contributors","subscribers_url":"https://api.github.com/repos/yeexel/framework/subscribers","subscription_url":"https://api.github.com/repos/yeexel/framework/subscription","commits_url":"https://api.github.com/repos/yeexel/framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/yeexel/framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/yeexel/framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/yeexel/framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/yeexel/framework/contents/{+path}","compare_url":"https://api.github.com/repos/yeexel/framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yeexel/framework/merges","archive_url":"https://api.github.com/repos/yeexel/framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yeexel/framework/downloads","issues_url":"https://api.github.com/repos/yeexel/framework/issues{/number}","pulls_url":"https://api.github.com/repos/yeexel/framework/pulls{/number}","milestones_url":"https://api.github.com/repos/yeexel/framework/milestones{/number}","notifications_url":"https://api.github.com/repos/yeexel/framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yeexel/framework/labels{/name}","releases_url":"https://api.github.com/repos/yeexel/framework/releases{/id}","created_at":"2015-11-05T09:47:00Z","updated_at":"2015-11-05T09:47:05Z","pushed_at":"2015-11-05T10:42:43Z","git_url":"git://github.com/yeexel/framework.git","ssh_url":"git@github.com:yeexel/framework.git","clone_url":"https://github.com/yeexel/framework.git","svn_url":"https://github.com/yeexel/framework","homepage":"http://laravel.com","size":70785,"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":"5.1"}},"base":{"label":"laravel:master","ref":"master","sha":"036cf95ed74f3ff83c5cdedfb4ebe1ee0763305a","user":{"login":"laravel","id":958072,"avatar_url":"https://avatars.githubusercontent.com/u/958072?v=3","gravatar_id":"","url":"https://api.github.com/users/laravel","html_url":"https://github.com/laravel","followers_url":"https://api.github.com/users/laravel/followers","following_url":"https://api.github.com/users/laravel/following{/other_user}","gists_url":"https://api.github.com/users/laravel/gists{/gist_id}","starred_url":"https://api.github.com/users/laravel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laravel/subscriptions","organizations_url":"https://api.github.com/users/laravel/orgs","repos_url":"https://api.github.com/users/laravel/repos","events_url":"https://api.github.com/users/laravel/events{/privacy}","received_events_url":"https://api.github.com/users/laravel/received_events","type":"Organization","site_admin":false},"repo":{"id":7548986,"name":"framework","full_name":"laravel/framework","owner":{"login":"laravel","id":958072,"avatar_url":"https://avatars.githubusercontent.com/u/958072?v=3","gravatar_id":"","url":"https://api.github.com/users/laravel","html_url":"https://github.com/laravel","followers_url":"https://api.github.com/users/laravel/followers","following_url":"https://api.github.com/users/laravel/following{/other_user}","gists_url":"https://api.github.com/users/laravel/gists{/gist_id}","starred_url":"https://api.github.com/users/laravel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laravel/subscriptions","organizations_url":"https://api.github.com/users/laravel/orgs","repos_url":"https://api.github.com/users/laravel/repos","events_url":"https://api.github.com/users/laravel/events{/privacy}","received_events_url":"https://api.github.com/users/laravel/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/laravel/framework","description":"","fork":false,"url":"https://api.github.com/repos/laravel/framework","forks_url":"https://api.github.com/repos/laravel/framework/forks","keys_url":"https://api.github.com/repos/laravel/framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/laravel/framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/laravel/framework/teams","hooks_url":"https://api.github.com/repos/laravel/framework/hooks","issue_events_url":"https://api.github.com/repos/laravel/framework/issues/events{/number}","events_url":"https://api.github.com/repos/laravel/framework/events","assignees_url":"https://api.github.com/repos/laravel/framework/assignees{/user}","branches_url":"https://api.github.com/repos/laravel/framework/branches{/branch}","tags_url":"https://api.github.com/repos/laravel/framework/tags","blobs_url":"https://api.github.com/repos/laravel/framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/laravel/framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/laravel/framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/laravel/framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/laravel/framework/statuses/{sha}","languages_url":"https://api.github.com/repos/laravel/framework/languages","stargazers_url":"https://api.github.com/repos/laravel/framework/stargazers","contributors_url":"https://api.github.com/repos/laravel/framework/contributors","subscribers_url":"https://api.github.com/repos/laravel/framework/subscribers","subscription_url":"https://api.github.com/repos/laravel/framework/subscription","commits_url":"https://api.github.com/repos/laravel/framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/laravel/framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/laravel/framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/laravel/framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/laravel/framework/contents/{+path}","compare_url":"https://api.github.com/repos/laravel/framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/laravel/framework/merges","archive_url":"https://api.github.com/repos/laravel/framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/laravel/framework/downloads","issues_url":"https://api.github.com/repos/laravel/framework/issues{/number}","pulls_url":"https://api.github.com/repos/laravel/framework/pulls{/number}","milestones_url":"https://api.github.com/repos/laravel/framework/milestones{/number}","notifications_url":"https://api.github.com/repos/laravel/framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/laravel/framework/labels{/name}","releases_url":"https://api.github.com/repos/laravel/framework/releases{/id}","created_at":"2013-01-10T21:27:28Z","updated_at":"2015-11-04T18:00:17Z","pushed_at":"2015-11-05T11:01:58Z","git_url":"git://github.com/laravel/framework.git","ssh_url":"git@github.com:laravel/framework.git","clone_url":"https://github.com/laravel/framework.git","svn_url":"https://github.com/laravel/framework","homepage":"http://laravel.com","size":70785,"stargazers_count":4292,"watchers_count":4292,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2482,"mirror_url":null,"open_issues_count":83,"forks":2482,"open_issues":83,"watchers":4292,"default_branch":"5.1"}},"_links":{"self":{"href":"https://api.github.com/repos/laravel/framework/pulls/10816"},"html":{"href":"https://github.com/laravel/framework/pull/10816"},"issue":{"href":"https://api.github.com/repos/laravel/framework/issues/10816"},"comments":{"href":"https://api.github.com/repos/laravel/framework/issues/10816/comments"},"review_comments":{"href":"https://api.github.com/repos/laravel/framework/pulls/10816/comments"},"review_comment":{"href":"https://api.github.com/repos/laravel/framework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/laravel/framework/pulls/10816/commits"},"statuses":{"href":"https://api.github.com/repos/laravel/framework/statuses/f97ce0c3a6847501e80bd73842cbb6da36011e52"}}}}