{"action":"closed","number":28,"pull_request":{"url":"https://api.github.com/repos/nikic/iter/pulls/28","id":43161465,"html_url":"https://github.com/nikic/iter/pull/28","diff_url":"https://github.com/nikic/iter/pull/28.diff","patch_url":"https://github.com/nikic/iter/pull/28.patch","issue_url":"https://api.github.com/repos/nikic/iter/issues/28","number":28,"state":"closed","locked":false,"title":"Added 'key' parameter into callable for 'reduce' and 'reductions' functions","user":{"login":"alxsad","id":474347,"avatar_url":"https://avatars.githubusercontent.com/u/474347?v=3","gravatar_id":"","url":"https://api.github.com/users/alxsad","html_url":"https://github.com/alxsad","followers_url":"https://api.github.com/users/alxsad/followers","following_url":"https://api.github.com/users/alxsad/following{/other_user}","gists_url":"https://api.github.com/users/alxsad/gists{/gist_id}","starred_url":"https://api.github.com/users/alxsad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alxsad/subscriptions","organizations_url":"https://api.github.com/users/alxsad/orgs","repos_url":"https://api.github.com/users/alxsad/repos","events_url":"https://api.github.com/users/alxsad/events{/privacy}","received_events_url":"https://api.github.com/users/alxsad/received_events","type":"User","site_admin":false},"body":"```php\r\niter\\reduce(function ($acc, $value, $key) {\r\n    $acc .= sprintf(\"%s: %s\\n\", $key, $value);\r\n    return $acc;\r\n}, $response->headers->all(), '');\r\n```","created_at":"2015-08-24T10:43:44Z","updated_at":"2015-08-25T15:01:38Z","closed_at":"2015-08-25T15:01:37Z","merged_at":null,"merge_commit_sha":"f5138ada686d75c45f0057c551a2cf36561c191a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nikic/iter/pulls/28/commits","review_comments_url":"https://api.github.com/repos/nikic/iter/pulls/28/comments","review_comment_url":"https://api.github.com/repos/nikic/iter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nikic/iter/issues/28/comments","statuses_url":"https://api.github.com/repos/nikic/iter/statuses/66111e11219be6c318d82286e032ac5fec6eed30","head":{"label":"alxsad:master","ref":"master","sha":"66111e11219be6c318d82286e032ac5fec6eed30","user":{"login":"alxsad","id":474347,"avatar_url":"https://avatars.githubusercontent.com/u/474347?v=3","gravatar_id":"","url":"https://api.github.com/users/alxsad","html_url":"https://github.com/alxsad","followers_url":"https://api.github.com/users/alxsad/followers","following_url":"https://api.github.com/users/alxsad/following{/other_user}","gists_url":"https://api.github.com/users/alxsad/gists{/gist_id}","starred_url":"https://api.github.com/users/alxsad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alxsad/subscriptions","organizations_url":"https://api.github.com/users/alxsad/orgs","repos_url":"https://api.github.com/users/alxsad/repos","events_url":"https://api.github.com/users/alxsad/events{/privacy}","received_events_url":"https://api.github.com/users/alxsad/received_events","type":"User","site_admin":false},"repo":{"id":41155524,"name":"iter","full_name":"alxsad/iter","owner":{"login":"alxsad","id":474347,"avatar_url":"https://avatars.githubusercontent.com/u/474347?v=3","gravatar_id":"","url":"https://api.github.com/users/alxsad","html_url":"https://github.com/alxsad","followers_url":"https://api.github.com/users/alxsad/followers","following_url":"https://api.github.com/users/alxsad/following{/other_user}","gists_url":"https://api.github.com/users/alxsad/gists{/gist_id}","starred_url":"https://api.github.com/users/alxsad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alxsad/subscriptions","organizations_url":"https://api.github.com/users/alxsad/orgs","repos_url":"https://api.github.com/users/alxsad/repos","events_url":"https://api.github.com/users/alxsad/events{/privacy}","received_events_url":"https://api.github.com/users/alxsad/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alxsad/iter","description":"Iteration primitives using generators","fork":true,"url":"https://api.github.com/repos/alxsad/iter","forks_url":"https://api.github.com/repos/alxsad/iter/forks","keys_url":"https://api.github.com/repos/alxsad/iter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alxsad/iter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alxsad/iter/teams","hooks_url":"https://api.github.com/repos/alxsad/iter/hooks","issue_events_url":"https://api.github.com/repos/alxsad/iter/issues/events{/number}","events_url":"https://api.github.com/repos/alxsad/iter/events","assignees_url":"https://api.github.com/repos/alxsad/iter/assignees{/user}","branches_url":"https://api.github.com/repos/alxsad/iter/branches{/branch}","tags_url":"https://api.github.com/repos/alxsad/iter/tags","blobs_url":"https://api.github.com/repos/alxsad/iter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alxsad/iter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alxsad/iter/git/refs{/sha}","trees_url":"https://api.github.com/repos/alxsad/iter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alxsad/iter/statuses/{sha}","languages_url":"https://api.github.com/repos/alxsad/iter/languages","stargazers_url":"https://api.github.com/repos/alxsad/iter/stargazers","contributors_url":"https://api.github.com/repos/alxsad/iter/contributors","subscribers_url":"https://api.github.com/repos/alxsad/iter/subscribers","subscription_url":"https://api.github.com/repos/alxsad/iter/subscription","commits_url":"https://api.github.com/repos/alxsad/iter/commits{/sha}","git_commits_url":"https://api.github.com/repos/alxsad/iter/git/commits{/sha}","comments_url":"https://api.github.com/repos/alxsad/iter/comments{/number}","issue_comment_url":"https://api.github.com/repos/alxsad/iter/issues/comments{/number}","contents_url":"https://api.github.com/repos/alxsad/iter/contents/{+path}","compare_url":"https://api.github.com/repos/alxsad/iter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alxsad/iter/merges","archive_url":"https://api.github.com/repos/alxsad/iter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alxsad/iter/downloads","issues_url":"https://api.github.com/repos/alxsad/iter/issues{/number}","pulls_url":"https://api.github.com/repos/alxsad/iter/pulls{/number}","milestones_url":"https://api.github.com/repos/alxsad/iter/milestones{/number}","notifications_url":"https://api.github.com/repos/alxsad/iter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alxsad/iter/labels{/name}","releases_url":"https://api.github.com/repos/alxsad/iter/releases{/id}","created_at":"2015-08-21T12:52:07Z","updated_at":"2015-08-21T12:52:07Z","pushed_at":"2015-08-24T10:31:05Z","git_url":"git://github.com/alxsad/iter.git","ssh_url":"git@github.com:alxsad/iter.git","clone_url":"https://github.com/alxsad/iter.git","svn_url":"https://github.com/alxsad/iter","homepage":null,"size":202,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"nikic:master","ref":"master","sha":"7da440d145c65df459c1f916e44e30f4f0c76637","user":{"login":"nikic","id":216080,"avatar_url":"https://avatars.githubusercontent.com/u/216080?v=3","gravatar_id":"","url":"https://api.github.com/users/nikic","html_url":"https://github.com/nikic","followers_url":"https://api.github.com/users/nikic/followers","following_url":"https://api.github.com/users/nikic/following{/other_user}","gists_url":"https://api.github.com/users/nikic/gists{/gist_id}","starred_url":"https://api.github.com/users/nikic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikic/subscriptions","organizations_url":"https://api.github.com/users/nikic/orgs","repos_url":"https://api.github.com/users/nikic/repos","events_url":"https://api.github.com/users/nikic/events{/privacy}","received_events_url":"https://api.github.com/users/nikic/received_events","type":"User","site_admin":false},"repo":{"id":11106590,"name":"iter","full_name":"nikic/iter","owner":{"login":"nikic","id":216080,"avatar_url":"https://avatars.githubusercontent.com/u/216080?v=3","gravatar_id":"","url":"https://api.github.com/users/nikic","html_url":"https://github.com/nikic","followers_url":"https://api.github.com/users/nikic/followers","following_url":"https://api.github.com/users/nikic/following{/other_user}","gists_url":"https://api.github.com/users/nikic/gists{/gist_id}","starred_url":"https://api.github.com/users/nikic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikic/subscriptions","organizations_url":"https://api.github.com/users/nikic/orgs","repos_url":"https://api.github.com/users/nikic/repos","events_url":"https://api.github.com/users/nikic/events{/privacy}","received_events_url":"https://api.github.com/users/nikic/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nikic/iter","description":"Iteration primitives using generators","fork":false,"url":"https://api.github.com/repos/nikic/iter","forks_url":"https://api.github.com/repos/nikic/iter/forks","keys_url":"https://api.github.com/repos/nikic/iter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nikic/iter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nikic/iter/teams","hooks_url":"https://api.github.com/repos/nikic/iter/hooks","issue_events_url":"https://api.github.com/repos/nikic/iter/issues/events{/number}","events_url":"https://api.github.com/repos/nikic/iter/events","assignees_url":"https://api.github.com/repos/nikic/iter/assignees{/user}","branches_url":"https://api.github.com/repos/nikic/iter/branches{/branch}","tags_url":"https://api.github.com/repos/nikic/iter/tags","blobs_url":"https://api.github.com/repos/nikic/iter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nikic/iter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nikic/iter/git/refs{/sha}","trees_url":"https://api.github.com/repos/nikic/iter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nikic/iter/statuses/{sha}","languages_url":"https://api.github.com/repos/nikic/iter/languages","stargazers_url":"https://api.github.com/repos/nikic/iter/stargazers","contributors_url":"https://api.github.com/repos/nikic/iter/contributors","subscribers_url":"https://api.github.com/repos/nikic/iter/subscribers","subscription_url":"https://api.github.com/repos/nikic/iter/subscription","commits_url":"https://api.github.com/repos/nikic/iter/commits{/sha}","git_commits_url":"https://api.github.com/repos/nikic/iter/git/commits{/sha}","comments_url":"https://api.github.com/repos/nikic/iter/comments{/number}","issue_comment_url":"https://api.github.com/repos/nikic/iter/issues/comments{/number}","contents_url":"https://api.github.com/repos/nikic/iter/contents/{+path}","compare_url":"https://api.github.com/repos/nikic/iter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nikic/iter/merges","archive_url":"https://api.github.com/repos/nikic/iter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nikic/iter/downloads","issues_url":"https://api.github.com/repos/nikic/iter/issues{/number}","pulls_url":"https://api.github.com/repos/nikic/iter/pulls{/number}","milestones_url":"https://api.github.com/repos/nikic/iter/milestones{/number}","notifications_url":"https://api.github.com/repos/nikic/iter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nikic/iter/labels{/name}","releases_url":"https://api.github.com/repos/nikic/iter/releases{/id}","created_at":"2013-07-01T20:43:54Z","updated_at":"2015-08-24T06:36:43Z","pushed_at":"2015-08-25T14:54:59Z","git_url":"git://github.com/nikic/iter.git","ssh_url":"git@github.com:nikic/iter.git","clone_url":"https://github.com/nikic/iter.git","svn_url":"https://github.com/nikic/iter","homepage":null,"size":369,"stargazers_count":336,"watchers_count":336,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":3,"forks":19,"open_issues":3,"watchers":336,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nikic/iter/pulls/28"},"html":{"href":"https://github.com/nikic/iter/pull/28"},"issue":{"href":"https://api.github.com/repos/nikic/iter/issues/28"},"comments":{"href":"https://api.github.com/repos/nikic/iter/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/nikic/iter/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/nikic/iter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nikic/iter/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/nikic/iter/statuses/66111e11219be6c318d82286e032ac5fec6eed30"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":1,"review_comments":0,"commits":2,"additions":20,"deletions":6,"changed_files":2}}