{"action":"created","comment":{"url":"https://api.github.com/repos/kravinskylev/sales_engine/pulls/comments/29807939","id":29807939,"diff_hunk":"@@ -18,27 +18,27 @@ def random\n   end\n \n   def find_by_id(id)\n-    @customers.find {|customer| customer.id == id}\n+    @customers.find { |customer| customer.id == id }\n   end\n \n   def find_all_by_id(id)\n-    @customers.find_all {|customer| customer.id == id}\n+    @customers.find_all { |customer| customer.id == id }\n   end\n \n   def find_by_first_name(first_name)\n-    @customers.find {|customer| customer.first_name == first_name}\n+    @customers.find { |customer| customer.first_name == first_name }","path":"lib/customer_repository.rb","position":15,"original_position":15,"commit_id":"ee317774f663f99ee88bed6fca4c29297bbd9492","original_commit_id":"ee317774f663f99ee88bed6fca4c29297bbd9492","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Prefer `detect` over `find`.","created_at":"2015-05-06T22:12:19Z","updated_at":"2015-05-06T22:12:19Z","html_url":"https://github.com/kravinskylev/sales_engine/pull/42#discussion_r29807939","pull_request_url":"https://api.github.com/repos/kravinskylev/sales_engine/pulls/42","_links":{"self":{"href":"https://api.github.com/repos/kravinskylev/sales_engine/pulls/comments/29807939"},"html":{"href":"https://github.com/kravinskylev/sales_engine/pull/42#discussion_r29807939"},"pull_request":{"href":"https://api.github.com/repos/kravinskylev/sales_engine/pulls/42"}}},"pull_request":{"url":"https://api.github.com/repos/kravinskylev/sales_engine/pulls/42","id":34865849,"html_url":"https://github.com/kravinskylev/sales_engine/pull/42","diff_url":"https://github.com/kravinskylev/sales_engine/pull/42.diff","patch_url":"https://github.com/kravinskylev/sales_engine/pull/42.patch","issue_url":"https://api.github.com/repos/kravinskylev/sales_engine/issues/42","number":42,"state":"open","locked":false,"title":"reek passing","user":{"login":"vanegomez","id":10290117,"avatar_url":"https://avatars.githubusercontent.com/u/10290117?v=3","gravatar_id":"","url":"https://api.github.com/users/vanegomez","html_url":"https://github.com/vanegomez","followers_url":"https://api.github.com/users/vanegomez/followers","following_url":"https://api.github.com/users/vanegomez/following{/other_user}","gists_url":"https://api.github.com/users/vanegomez/gists{/gist_id}","starred_url":"https://api.github.com/users/vanegomez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vanegomez/subscriptions","organizations_url":"https://api.github.com/users/vanegomez/orgs","repos_url":"https://api.github.com/users/vanegomez/repos","events_url":"https://api.github.com/users/vanegomez/events{/privacy}","received_events_url":"https://api.github.com/users/vanegomez/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-06T22:12:15Z","updated_at":"2015-05-06T22:12:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"011a2e79708e6155298e7eab80c33c338da9a484","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kravinskylev/sales_engine/pulls/42/commits","review_comments_url":"https://api.github.com/repos/kravinskylev/sales_engine/pulls/42/comments","review_comment_url":"https://api.github.com/repos/kravinskylev/sales_engine/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kravinskylev/sales_engine/issues/42/comments","statuses_url":"https://api.github.com/repos/kravinskylev/sales_engine/statuses/ee317774f663f99ee88bed6fca4c29297bbd9492","head":{"label":"kravinskylev:reek","ref":"reek","sha":"ee317774f663f99ee88bed6fca4c29297bbd9492","user":{"login":"kravinskylev","id":11400051,"avatar_url":"https://avatars.githubusercontent.com/u/11400051?v=3","gravatar_id":"","url":"https://api.github.com/users/kravinskylev","html_url":"https://github.com/kravinskylev","followers_url":"https://api.github.com/users/kravinskylev/followers","following_url":"https://api.github.com/users/kravinskylev/following{/other_user}","gists_url":"https://api.github.com/users/kravinskylev/gists{/gist_id}","starred_url":"https://api.github.com/users/kravinskylev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kravinskylev/subscriptions","organizations_url":"https://api.github.com/users/kravinskylev/orgs","repos_url":"https://api.github.com/users/kravinskylev/repos","events_url":"https://api.github.com/users/kravinskylev/events{/privacy}","received_events_url":"https://api.github.com/users/kravinskylev/received_events","type":"User","site_admin":false},"repo":{"id":34694628,"name":"sales_engine","full_name":"kravinskylev/sales_engine","owner":{"login":"kravinskylev","id":11400051,"avatar_url":"https://avatars.githubusercontent.com/u/11400051?v=3","gravatar_id":"","url":"https://api.github.com/users/kravinskylev","html_url":"https://github.com/kravinskylev","followers_url":"https://api.github.com/users/kravinskylev/followers","following_url":"https://api.github.com/users/kravinskylev/following{/other_user}","gists_url":"https://api.github.com/users/kravinskylev/gists{/gist_id}","starred_url":"https://api.github.com/users/kravinskylev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kravinskylev/subscriptions","organizations_url":"https://api.github.com/users/kravinskylev/orgs","repos_url":"https://api.github.com/users/kravinskylev/repos","events_url":"https://api.github.com/users/kravinskylev/events{/privacy}","received_events_url":"https://api.github.com/users/kravinskylev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kravinskylev/sales_engine","description":"","fork":false,"url":"https://api.github.com/repos/kravinskylev/sales_engine","forks_url":"https://api.github.com/repos/kravinskylev/sales_engine/forks","keys_url":"https://api.github.com/repos/kravinskylev/sales_engine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kravinskylev/sales_engine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kravinskylev/sales_engine/teams","hooks_url":"https://api.github.com/repos/kravinskylev/sales_engine/hooks","issue_events_url":"https://api.github.com/repos/kravinskylev/sales_engine/issues/events{/number}","events_url":"https://api.github.com/repos/kravinskylev/sales_engine/events","assignees_url":"https://api.github.com/repos/kravinskylev/sales_engine/assignees{/user}","branches_url":"https://api.github.com/repos/kravinskylev/sales_engine/branches{/branch}","tags_url":"https://api.github.com/repos/kravinskylev/sales_engine/tags","blobs_url":"https://api.github.com/repos/kravinskylev/sales_engine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kravinskylev/sales_engine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kravinskylev/sales_engine/git/refs{/sha}","trees_url":"https://api.github.com/repos/kravinskylev/sales_engine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kravinskylev/sales_engine/statuses/{sha}","languages_url":"https://api.github.com/repos/kravinskylev/sales_engine/languages","stargazers_url":"https://api.github.com/repos/kravinskylev/sales_engine/stargazers","contributors_url":"https://api.github.com/repos/kravinskylev/sales_engine/contributors","subscribers_url":"https://api.github.com/repos/kravinskylev/sales_engine/subscribers","subscription_url":"https://api.github.com/repos/kravinskylev/sales_engine/subscription","commits_url":"https://api.github.com/repos/kravinskylev/sales_engine/commits{/sha}","git_commits_url":"https://api.github.com/repos/kravinskylev/sales_engine/git/commits{/sha}","comments_url":"https://api.github.com/repos/kravinskylev/sales_engine/comments{/number}","issue_comment_url":"https://api.github.com/repos/kravinskylev/sales_engine/issues/comments{/number}","contents_url":"https://api.github.com/repos/kravinskylev/sales_engine/contents/{+path}","compare_url":"https://api.github.com/repos/kravinskylev/sales_engine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kravinskylev/sales_engine/merges","archive_url":"https://api.github.com/repos/kravinskylev/sales_engine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kravinskylev/sales_engine/downloads","issues_url":"https://api.github.com/repos/kravinskylev/sales_engine/issues{/number}","pulls_url":"https://api.github.com/repos/kravinskylev/sales_engine/pulls{/number}","milestones_url":"https://api.github.com/repos/kravinskylev/sales_engine/milestones{/number}","notifications_url":"https://api.github.com/repos/kravinskylev/sales_engine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kravinskylev/sales_engine/labels{/name}","releases_url":"https://api.github.com/repos/kravinskylev/sales_engine/releases{/id}","created_at":"2015-04-27T22:30:00Z","updated_at":"2015-05-06T22:11:21Z","pushed_at":"2015-05-06T22:12:16Z","git_url":"git://github.com/kravinskylev/sales_engine.git","ssh_url":"git@github.com:kravinskylev/sales_engine.git","clone_url":"https://github.com/kravinskylev/sales_engine.git","svn_url":"https://github.com/kravinskylev/sales_engine","homepage":null,"size":1189,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"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":"kravinskylev:master","ref":"master","sha":"cadb4611a7e9732d02acc8deedc53415a5059592","user":{"login":"kravinskylev","id":11400051,"avatar_url":"https://avatars.githubusercontent.com/u/11400051?v=3","gravatar_id":"","url":"https://api.github.com/users/kravinskylev","html_url":"https://github.com/kravinskylev","followers_url":"https://api.github.com/users/kravinskylev/followers","following_url":"https://api.github.com/users/kravinskylev/following{/other_user}","gists_url":"https://api.github.com/users/kravinskylev/gists{/gist_id}","starred_url":"https://api.github.com/users/kravinskylev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kravinskylev/subscriptions","organizations_url":"https://api.github.com/users/kravinskylev/orgs","repos_url":"https://api.github.com/users/kravinskylev/repos","events_url":"https://api.github.com/users/kravinskylev/events{/privacy}","received_events_url":"https://api.github.com/users/kravinskylev/received_events","type":"User","site_admin":false},"repo":{"id":34694628,"name":"sales_engine","full_name":"kravinskylev/sales_engine","owner":{"login":"kravinskylev","id":11400051,"avatar_url":"https://avatars.githubusercontent.com/u/11400051?v=3","gravatar_id":"","url":"https://api.github.com/users/kravinskylev","html_url":"https://github.com/kravinskylev","followers_url":"https://api.github.com/users/kravinskylev/followers","following_url":"https://api.github.com/users/kravinskylev/following{/other_user}","gists_url":"https://api.github.com/users/kravinskylev/gists{/gist_id}","starred_url":"https://api.github.com/users/kravinskylev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kravinskylev/subscriptions","organizations_url":"https://api.github.com/users/kravinskylev/orgs","repos_url":"https://api.github.com/users/kravinskylev/repos","events_url":"https://api.github.com/users/kravinskylev/events{/privacy}","received_events_url":"https://api.github.com/users/kravinskylev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kravinskylev/sales_engine","description":"","fork":false,"url":"https://api.github.com/repos/kravinskylev/sales_engine","forks_url":"https://api.github.com/repos/kravinskylev/sales_engine/forks","keys_url":"https://api.github.com/repos/kravinskylev/sales_engine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kravinskylev/sales_engine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kravinskylev/sales_engine/teams","hooks_url":"https://api.github.com/repos/kravinskylev/sales_engine/hooks","issue_events_url":"https://api.github.com/repos/kravinskylev/sales_engine/issues/events{/number}","events_url":"https://api.github.com/repos/kravinskylev/sales_engine/events","assignees_url":"https://api.github.com/repos/kravinskylev/sales_engine/assignees{/user}","branches_url":"https://api.github.com/repos/kravinskylev/sales_engine/branches{/branch}","tags_url":"https://api.github.com/repos/kravinskylev/sales_engine/tags","blobs_url":"https://api.github.com/repos/kravinskylev/sales_engine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kravinskylev/sales_engine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kravinskylev/sales_engine/git/refs{/sha}","trees_url":"https://api.github.com/repos/kravinskylev/sales_engine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kravinskylev/sales_engine/statuses/{sha}","languages_url":"https://api.github.com/repos/kravinskylev/sales_engine/languages","stargazers_url":"https://api.github.com/repos/kravinskylev/sales_engine/stargazers","contributors_url":"https://api.github.com/repos/kravinskylev/sales_engine/contributors","subscribers_url":"https://api.github.com/repos/kravinskylev/sales_engine/subscribers","subscription_url":"https://api.github.com/repos/kravinskylev/sales_engine/subscription","commits_url":"https://api.github.com/repos/kravinskylev/sales_engine/commits{/sha}","git_commits_url":"https://api.github.com/repos/kravinskylev/sales_engine/git/commits{/sha}","comments_url":"https://api.github.com/repos/kravinskylev/sales_engine/comments{/number}","issue_comment_url":"https://api.github.com/repos/kravinskylev/sales_engine/issues/comments{/number}","contents_url":"https://api.github.com/repos/kravinskylev/sales_engine/contents/{+path}","compare_url":"https://api.github.com/repos/kravinskylev/sales_engine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kravinskylev/sales_engine/merges","archive_url":"https://api.github.com/repos/kravinskylev/sales_engine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kravinskylev/sales_engine/downloads","issues_url":"https://api.github.com/repos/kravinskylev/sales_engine/issues{/number}","pulls_url":"https://api.github.com/repos/kravinskylev/sales_engine/pulls{/number}","milestones_url":"https://api.github.com/repos/kravinskylev/sales_engine/milestones{/number}","notifications_url":"https://api.github.com/repos/kravinskylev/sales_engine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kravinskylev/sales_engine/labels{/name}","releases_url":"https://api.github.com/repos/kravinskylev/sales_engine/releases{/id}","created_at":"2015-04-27T22:30:00Z","updated_at":"2015-05-06T22:11:21Z","pushed_at":"2015-05-06T22:12:16Z","git_url":"git://github.com/kravinskylev/sales_engine.git","ssh_url":"git@github.com:kravinskylev/sales_engine.git","clone_url":"https://github.com/kravinskylev/sales_engine.git","svn_url":"https://github.com/kravinskylev/sales_engine","homepage":null,"size":1189,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"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/kravinskylev/sales_engine/pulls/42"},"html":{"href":"https://github.com/kravinskylev/sales_engine/pull/42"},"issue":{"href":"https://api.github.com/repos/kravinskylev/sales_engine/issues/42"},"comments":{"href":"https://api.github.com/repos/kravinskylev/sales_engine/issues/42/comments"},"review_comments":{"href":"https://api.github.com/repos/kravinskylev/sales_engine/pulls/42/comments"},"review_comment":{"href":"https://api.github.com/repos/kravinskylev/sales_engine/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kravinskylev/sales_engine/pulls/42/commits"},"statuses":{"href":"https://api.github.com/repos/kravinskylev/sales_engine/statuses/ee317774f663f99ee88bed6fca4c29297bbd9492"}}}}