{"action":"created","comment":{"url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/pulls/comments/46771726","id":46771726,"diff_hunk":"@@ -9,6 +9,25 @@ class ArrayUtils\n      */\n     public function mostRepeatedValue(array $array)\n     {\n+        $counts = [];\n+        foreach ($array as $item) {","path":"src/ArrayUtils.php","position":5,"original_position":5,"commit_id":"570ffd83eeed89836dcc93fd2ea8934307776904","original_commit_id":"570ffd83eeed89836dcc93fd2ea8934307776904","user":{"login":"itcraftsmanpl","id":8239917,"avatar_url":"https://avatars.githubusercontent.com/u/8239917?v=3","gravatar_id":"","url":"https://api.github.com/users/itcraftsmanpl","html_url":"https://github.com/itcraftsmanpl","followers_url":"https://api.github.com/users/itcraftsmanpl/followers","following_url":"https://api.github.com/users/itcraftsmanpl/following{/other_user}","gists_url":"https://api.github.com/users/itcraftsmanpl/gists{/gist_id}","starred_url":"https://api.github.com/users/itcraftsmanpl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itcraftsmanpl/subscriptions","organizations_url":"https://api.github.com/users/itcraftsmanpl/orgs","repos_url":"https://api.github.com/users/itcraftsmanpl/repos","events_url":"https://api.github.com/users/itcraftsmanpl/events{/privacy}","received_events_url":"https://api.github.com/users/itcraftsmanpl/received_events","type":"User","site_admin":false},"body":"Do wyliczenia ilości powtórzeń możesz użyć funkcji array_count_values, więcej info pod linkiem http://php.net/array_count_values","created_at":"2015-12-06T15:33:50Z","updated_at":"2015-12-06T15:33:50Z","html_url":"https://github.com/itcraftsmanpl/code-review-example/pull/1#discussion_r46771726","pull_request_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/itcraftsmanpl/code-review-example/pulls/comments/46771726"},"html":{"href":"https://github.com/itcraftsmanpl/code-review-example/pull/1#discussion_r46771726"},"pull_request":{"href":"https://api.github.com/repos/itcraftsmanpl/code-review-example/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/pulls/1","id":52782102,"html_url":"https://github.com/itcraftsmanpl/code-review-example/pull/1","diff_url":"https://github.com/itcraftsmanpl/code-review-example/pull/1.diff","patch_url":"https://github.com/itcraftsmanpl/code-review-example/pull/1.patch","issue_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/issues/1","number":1,"state":"open","locked":false,"title":"most repeated value implementation","user":{"login":"itcraftsmanpl","id":8239917,"avatar_url":"https://avatars.githubusercontent.com/u/8239917?v=3","gravatar_id":"","url":"https://api.github.com/users/itcraftsmanpl","html_url":"https://github.com/itcraftsmanpl","followers_url":"https://api.github.com/users/itcraftsmanpl/followers","following_url":"https://api.github.com/users/itcraftsmanpl/following{/other_user}","gists_url":"https://api.github.com/users/itcraftsmanpl/gists{/gist_id}","starred_url":"https://api.github.com/users/itcraftsmanpl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itcraftsmanpl/subscriptions","organizations_url":"https://api.github.com/users/itcraftsmanpl/orgs","repos_url":"https://api.github.com/users/itcraftsmanpl/repos","events_url":"https://api.github.com/users/itcraftsmanpl/events{/privacy}","received_events_url":"https://api.github.com/users/itcraftsmanpl/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-06T15:15:27Z","updated_at":"2015-12-06T15:33:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"24b12cce3fa636551e4c54596fb1eec046b9016c","assignee":{"login":"itcraftsmanpl","id":8239917,"avatar_url":"https://avatars.githubusercontent.com/u/8239917?v=3","gravatar_id":"","url":"https://api.github.com/users/itcraftsmanpl","html_url":"https://github.com/itcraftsmanpl","followers_url":"https://api.github.com/users/itcraftsmanpl/followers","following_url":"https://api.github.com/users/itcraftsmanpl/following{/other_user}","gists_url":"https://api.github.com/users/itcraftsmanpl/gists{/gist_id}","starred_url":"https://api.github.com/users/itcraftsmanpl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itcraftsmanpl/subscriptions","organizations_url":"https://api.github.com/users/itcraftsmanpl/orgs","repos_url":"https://api.github.com/users/itcraftsmanpl/repos","events_url":"https://api.github.com/users/itcraftsmanpl/events{/privacy}","received_events_url":"https://api.github.com/users/itcraftsmanpl/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/pulls/1/commits","review_comments_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/pulls/1/comments","review_comment_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/pulls/comments{/number}","comments_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/issues/1/comments","statuses_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/statuses/570ffd83eeed89836dcc93fd2ea8934307776904","head":{"label":"itcraftsmanpl:most-repeated","ref":"most-repeated","sha":"570ffd83eeed89836dcc93fd2ea8934307776904","user":{"login":"itcraftsmanpl","id":8239917,"avatar_url":"https://avatars.githubusercontent.com/u/8239917?v=3","gravatar_id":"","url":"https://api.github.com/users/itcraftsmanpl","html_url":"https://github.com/itcraftsmanpl","followers_url":"https://api.github.com/users/itcraftsmanpl/followers","following_url":"https://api.github.com/users/itcraftsmanpl/following{/other_user}","gists_url":"https://api.github.com/users/itcraftsmanpl/gists{/gist_id}","starred_url":"https://api.github.com/users/itcraftsmanpl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itcraftsmanpl/subscriptions","organizations_url":"https://api.github.com/users/itcraftsmanpl/orgs","repos_url":"https://api.github.com/users/itcraftsmanpl/repos","events_url":"https://api.github.com/users/itcraftsmanpl/events{/privacy}","received_events_url":"https://api.github.com/users/itcraftsmanpl/received_events","type":"User","site_admin":false},"repo":{"id":47492512,"name":"code-review-example","full_name":"itcraftsmanpl/code-review-example","owner":{"login":"itcraftsmanpl","id":8239917,"avatar_url":"https://avatars.githubusercontent.com/u/8239917?v=3","gravatar_id":"","url":"https://api.github.com/users/itcraftsmanpl","html_url":"https://github.com/itcraftsmanpl","followers_url":"https://api.github.com/users/itcraftsmanpl/followers","following_url":"https://api.github.com/users/itcraftsmanpl/following{/other_user}","gists_url":"https://api.github.com/users/itcraftsmanpl/gists{/gist_id}","starred_url":"https://api.github.com/users/itcraftsmanpl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itcraftsmanpl/subscriptions","organizations_url":"https://api.github.com/users/itcraftsmanpl/orgs","repos_url":"https://api.github.com/users/itcraftsmanpl/repos","events_url":"https://api.github.com/users/itcraftsmanpl/events{/privacy}","received_events_url":"https://api.github.com/users/itcraftsmanpl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/itcraftsmanpl/code-review-example","description":"Simple repo for presentation about code review.","fork":false,"url":"https://api.github.com/repos/itcraftsmanpl/code-review-example","forks_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/forks","keys_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/keys{/key_id}","collaborators_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/teams","hooks_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/hooks","issue_events_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/issues/events{/number}","events_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/events","assignees_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/assignees{/user}","branches_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/branches{/branch}","tags_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/tags","blobs_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/git/refs{/sha}","trees_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/git/trees{/sha}","statuses_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/statuses/{sha}","languages_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/languages","stargazers_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/stargazers","contributors_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/contributors","subscribers_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/subscribers","subscription_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/subscription","commits_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/commits{/sha}","git_commits_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/git/commits{/sha}","comments_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/comments{/number}","issue_comment_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/issues/comments{/number}","contents_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/contents/{+path}","compare_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/compare/{base}...{head}","merges_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/merges","archive_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/downloads","issues_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/issues{/number}","pulls_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/pulls{/number}","milestones_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/milestones{/number}","notifications_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/labels{/name}","releases_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/releases{/id}","created_at":"2015-12-06T10:39:07Z","updated_at":"2015-12-06T14:41:08Z","pushed_at":"2015-12-06T15:25:33Z","git_url":"git://github.com/itcraftsmanpl/code-review-example.git","ssh_url":"git@github.com:itcraftsmanpl/code-review-example.git","clone_url":"https://github.com/itcraftsmanpl/code-review-example.git","svn_url":"https://github.com/itcraftsmanpl/code-review-example","homepage":"","size":9,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"itcraftsmanpl:master","ref":"master","sha":"77df46a5ba3fa988b89a6b1f6d191ce68e389257","user":{"login":"itcraftsmanpl","id":8239917,"avatar_url":"https://avatars.githubusercontent.com/u/8239917?v=3","gravatar_id":"","url":"https://api.github.com/users/itcraftsmanpl","html_url":"https://github.com/itcraftsmanpl","followers_url":"https://api.github.com/users/itcraftsmanpl/followers","following_url":"https://api.github.com/users/itcraftsmanpl/following{/other_user}","gists_url":"https://api.github.com/users/itcraftsmanpl/gists{/gist_id}","starred_url":"https://api.github.com/users/itcraftsmanpl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itcraftsmanpl/subscriptions","organizations_url":"https://api.github.com/users/itcraftsmanpl/orgs","repos_url":"https://api.github.com/users/itcraftsmanpl/repos","events_url":"https://api.github.com/users/itcraftsmanpl/events{/privacy}","received_events_url":"https://api.github.com/users/itcraftsmanpl/received_events","type":"User","site_admin":false},"repo":{"id":47492512,"name":"code-review-example","full_name":"itcraftsmanpl/code-review-example","owner":{"login":"itcraftsmanpl","id":8239917,"avatar_url":"https://avatars.githubusercontent.com/u/8239917?v=3","gravatar_id":"","url":"https://api.github.com/users/itcraftsmanpl","html_url":"https://github.com/itcraftsmanpl","followers_url":"https://api.github.com/users/itcraftsmanpl/followers","following_url":"https://api.github.com/users/itcraftsmanpl/following{/other_user}","gists_url":"https://api.github.com/users/itcraftsmanpl/gists{/gist_id}","starred_url":"https://api.github.com/users/itcraftsmanpl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itcraftsmanpl/subscriptions","organizations_url":"https://api.github.com/users/itcraftsmanpl/orgs","repos_url":"https://api.github.com/users/itcraftsmanpl/repos","events_url":"https://api.github.com/users/itcraftsmanpl/events{/privacy}","received_events_url":"https://api.github.com/users/itcraftsmanpl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/itcraftsmanpl/code-review-example","description":"Simple repo for presentation about code review.","fork":false,"url":"https://api.github.com/repos/itcraftsmanpl/code-review-example","forks_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/forks","keys_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/keys{/key_id}","collaborators_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/teams","hooks_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/hooks","issue_events_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/issues/events{/number}","events_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/events","assignees_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/assignees{/user}","branches_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/branches{/branch}","tags_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/tags","blobs_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/git/refs{/sha}","trees_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/git/trees{/sha}","statuses_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/statuses/{sha}","languages_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/languages","stargazers_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/stargazers","contributors_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/contributors","subscribers_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/subscribers","subscription_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/subscription","commits_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/commits{/sha}","git_commits_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/git/commits{/sha}","comments_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/comments{/number}","issue_comment_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/issues/comments{/number}","contents_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/contents/{+path}","compare_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/compare/{base}...{head}","merges_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/merges","archive_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/downloads","issues_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/issues{/number}","pulls_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/pulls{/number}","milestones_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/milestones{/number}","notifications_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/labels{/name}","releases_url":"https://api.github.com/repos/itcraftsmanpl/code-review-example/releases{/id}","created_at":"2015-12-06T10:39:07Z","updated_at":"2015-12-06T14:41:08Z","pushed_at":"2015-12-06T15:25:33Z","git_url":"git://github.com/itcraftsmanpl/code-review-example.git","ssh_url":"git@github.com:itcraftsmanpl/code-review-example.git","clone_url":"https://github.com/itcraftsmanpl/code-review-example.git","svn_url":"https://github.com/itcraftsmanpl/code-review-example","homepage":"","size":9,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/itcraftsmanpl/code-review-example/pulls/1"},"html":{"href":"https://github.com/itcraftsmanpl/code-review-example/pull/1"},"issue":{"href":"https://api.github.com/repos/itcraftsmanpl/code-review-example/issues/1"},"comments":{"href":"https://api.github.com/repos/itcraftsmanpl/code-review-example/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/itcraftsmanpl/code-review-example/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/itcraftsmanpl/code-review-example/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/itcraftsmanpl/code-review-example/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/itcraftsmanpl/code-review-example/statuses/570ffd83eeed89836dcc93fd2ea8934307776904"}}}}