{"action":"created","comment":{"url":"https://api.github.com/repos/kete/kete/pulls/comments/166232324","pull_request_review_id":94274267,"id":166232324,"diff_hunk":"@@ -83,17 +83,17 @@ def self.define_query_method_for(method_name, attribute_spec)\n     code =\n       Proc.new do |term_or_terms, *options|\n         options = options.first || Hash.new\n-           terms = terms_as_array(term_or_terms)\n+        terms = terms_as_array(term_or_terms)\n      \n            # make default operator @and, if unspecified\n-           options[:operator] = options[:operator].nil? ? '@and' : options[:operator]\n+        options[:operator] = options[:operator].nil? ? '@and' : options[:operator]\n            # pass nil operator, if 'none' is specified\n-           options[:operator] = nil if options[:operator] == 'none'\n+        options[:operator] = nil if options[:operator] == 'none'\n      \n-           query_part = create_query_part(options.merge({ \n-                                                          attribute_spec: attribute_spec,\n-                                                          term_or_terms: terms \n-                                                        }))\n+        query_part = create_query_part(options.merge({ ","path":"app/models/pqf_query.rb","position":18,"original_position":18,"commit_id":"36dec271cd5ad62971c52eb60c4babf4cbdff8dc","original_commit_id":"36dec271cd5ad62971c52eb60c4babf4cbdff8dc","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Useless assignment to variable - query_part.<br>Redundant curly braces around a hash parameter.<br>Trailing whitespace detected.","created_at":"2018-02-06T09:32:36Z","updated_at":"2018-02-06T09:32:36Z","html_url":"https://github.com/kete/kete/pull/198#discussion_r166232324","pull_request_url":"https://api.github.com/repos/kete/kete/pulls/198","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/kete/kete/pulls/comments/166232324"},"html":{"href":"https://github.com/kete/kete/pull/198#discussion_r166232324"},"pull_request":{"href":"https://api.github.com/repos/kete/kete/pulls/198"}}},"pull_request":{"url":"https://api.github.com/repos/kete/kete/pulls/198","id":167360682,"html_url":"https://github.com/kete/kete/pull/198","diff_url":"https://github.com/kete/kete/pull/198.diff","patch_url":"https://github.com/kete/kete/pull/198.patch","issue_url":"https://api.github.com/repos/kete/kete/issues/198","number":198,"state":"open","locked":false,"title":"Auto corrected by following Layout/IndentationConsistency","user":{"login":"Br3nda","id":12266,"avatar_url":"https://avatars0.githubusercontent.com/u/12266?v=4","gravatar_id":"","url":"https://api.github.com/users/Br3nda","html_url":"https://github.com/Br3nda","followers_url":"https://api.github.com/users/Br3nda/followers","following_url":"https://api.github.com/users/Br3nda/following{/other_user}","gists_url":"https://api.github.com/users/Br3nda/gists{/gist_id}","starred_url":"https://api.github.com/users/Br3nda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Br3nda/subscriptions","organizations_url":"https://api.github.com/users/Br3nda/orgs","repos_url":"https://api.github.com/users/Br3nda/repos","events_url":"https://api.github.com/users/Br3nda/events{/privacy}","received_events_url":"https://api.github.com/users/Br3nda/received_events","type":"User","site_admin":false},"body":"Auto corrected by following Layout/IndentationConsistency\n\nClick [here](https://awesomecode.io/projects/60/ruby_configs/15445) to configure it on awesomecode.io","created_at":"2018-02-06T09:32:05Z","updated_at":"2018-02-06T09:32:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4e467eb009cd6dc43a250f74f856fb20a4964325","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/kete/kete/pulls/198/commits","review_comments_url":"https://api.github.com/repos/kete/kete/pulls/198/comments","review_comment_url":"https://api.github.com/repos/kete/kete/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kete/kete/issues/198/comments","statuses_url":"https://api.github.com/repos/kete/kete/statuses/36dec271cd5ad62971c52eb60c4babf4cbdff8dc","head":{"label":"kete:awesomecode-layout/indentationconsistency-8691","ref":"awesomecode-layout/indentationconsistency-8691","sha":"36dec271cd5ad62971c52eb60c4babf4cbdff8dc","user":{"login":"kete","id":16226,"avatar_url":"https://avatars0.githubusercontent.com/u/16226?v=4","gravatar_id":"","url":"https://api.github.com/users/kete","html_url":"https://github.com/kete","followers_url":"https://api.github.com/users/kete/followers","following_url":"https://api.github.com/users/kete/following{/other_user}","gists_url":"https://api.github.com/users/kete/gists{/gist_id}","starred_url":"https://api.github.com/users/kete/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kete/subscriptions","organizations_url":"https://api.github.com/users/kete/orgs","repos_url":"https://api.github.com/users/kete/repos","events_url":"https://api.github.com/users/kete/events{/privacy}","received_events_url":"https://api.github.com/users/kete/received_events","type":"Organization","site_admin":false},"repo":{"id":33876,"name":"kete","full_name":"kete/kete","owner":{"login":"kete","id":16226,"avatar_url":"https://avatars0.githubusercontent.com/u/16226?v=4","gravatar_id":"","url":"https://api.github.com/users/kete","html_url":"https://github.com/kete","followers_url":"https://api.github.com/users/kete/followers","following_url":"https://api.github.com/users/kete/following{/other_user}","gists_url":"https://api.github.com/users/kete/gists{/gist_id}","starred_url":"https://api.github.com/users/kete/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kete/subscriptions","organizations_url":"https://api.github.com/users/kete/orgs","repos_url":"https://api.github.com/users/kete/repos","events_url":"https://api.github.com/users/kete/events{/privacy}","received_events_url":"https://api.github.com/users/kete/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kete/kete","description":"Kete was developed by Horowhenua Library Trust and Katipo Communications Ltd. to build a digital library of Horowhenua material.","fork":false,"url":"https://api.github.com/repos/kete/kete","forks_url":"https://api.github.com/repos/kete/kete/forks","keys_url":"https://api.github.com/repos/kete/kete/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kete/kete/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kete/kete/teams","hooks_url":"https://api.github.com/repos/kete/kete/hooks","issue_events_url":"https://api.github.com/repos/kete/kete/issues/events{/number}","events_url":"https://api.github.com/repos/kete/kete/events","assignees_url":"https://api.github.com/repos/kete/kete/assignees{/user}","branches_url":"https://api.github.com/repos/kete/kete/branches{/branch}","tags_url":"https://api.github.com/repos/kete/kete/tags","blobs_url":"https://api.github.com/repos/kete/kete/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kete/kete/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kete/kete/git/refs{/sha}","trees_url":"https://api.github.com/repos/kete/kete/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kete/kete/statuses/{sha}","languages_url":"https://api.github.com/repos/kete/kete/languages","stargazers_url":"https://api.github.com/repos/kete/kete/stargazers","contributors_url":"https://api.github.com/repos/kete/kete/contributors","subscribers_url":"https://api.github.com/repos/kete/kete/subscribers","subscription_url":"https://api.github.com/repos/kete/kete/subscription","commits_url":"https://api.github.com/repos/kete/kete/commits{/sha}","git_commits_url":"https://api.github.com/repos/kete/kete/git/commits{/sha}","comments_url":"https://api.github.com/repos/kete/kete/comments{/number}","issue_comment_url":"https://api.github.com/repos/kete/kete/issues/comments{/number}","contents_url":"https://api.github.com/repos/kete/kete/contents/{+path}","compare_url":"https://api.github.com/repos/kete/kete/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kete/kete/merges","archive_url":"https://api.github.com/repos/kete/kete/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kete/kete/downloads","issues_url":"https://api.github.com/repos/kete/kete/issues{/number}","pulls_url":"https://api.github.com/repos/kete/kete/pulls{/number}","milestones_url":"https://api.github.com/repos/kete/kete/milestones{/number}","notifications_url":"https://api.github.com/repos/kete/kete/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kete/kete/labels{/name}","releases_url":"https://api.github.com/repos/kete/kete/releases{/id}","deployments_url":"https://api.github.com/repos/kete/kete/deployments","created_at":"2008-07-14T07:19:24Z","updated_at":"2017-07-06T04:13:57Z","pushed_at":"2018-02-06T09:32:06Z","git_url":"git://github.com/kete/kete.git","ssh_url":"git@github.com:kete/kete.git","clone_url":"https://github.com/kete/kete.git","svn_url":"https://github.com/kete/kete","homepage":"http://kete.net.nz/","size":26628,"stargazers_count":59,"watchers_count":59,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":10,"open_issues":3,"watchers":59,"default_branch":"master"}},"base":{"label":"kete:master","ref":"master","sha":"d92410fd21ae03118e09b62f11c6bc571ce43408","user":{"login":"kete","id":16226,"avatar_url":"https://avatars0.githubusercontent.com/u/16226?v=4","gravatar_id":"","url":"https://api.github.com/users/kete","html_url":"https://github.com/kete","followers_url":"https://api.github.com/users/kete/followers","following_url":"https://api.github.com/users/kete/following{/other_user}","gists_url":"https://api.github.com/users/kete/gists{/gist_id}","starred_url":"https://api.github.com/users/kete/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kete/subscriptions","organizations_url":"https://api.github.com/users/kete/orgs","repos_url":"https://api.github.com/users/kete/repos","events_url":"https://api.github.com/users/kete/events{/privacy}","received_events_url":"https://api.github.com/users/kete/received_events","type":"Organization","site_admin":false},"repo":{"id":33876,"name":"kete","full_name":"kete/kete","owner":{"login":"kete","id":16226,"avatar_url":"https://avatars0.githubusercontent.com/u/16226?v=4","gravatar_id":"","url":"https://api.github.com/users/kete","html_url":"https://github.com/kete","followers_url":"https://api.github.com/users/kete/followers","following_url":"https://api.github.com/users/kete/following{/other_user}","gists_url":"https://api.github.com/users/kete/gists{/gist_id}","starred_url":"https://api.github.com/users/kete/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kete/subscriptions","organizations_url":"https://api.github.com/users/kete/orgs","repos_url":"https://api.github.com/users/kete/repos","events_url":"https://api.github.com/users/kete/events{/privacy}","received_events_url":"https://api.github.com/users/kete/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kete/kete","description":"Kete was developed by Horowhenua Library Trust and Katipo Communications Ltd. to build a digital library of Horowhenua material.","fork":false,"url":"https://api.github.com/repos/kete/kete","forks_url":"https://api.github.com/repos/kete/kete/forks","keys_url":"https://api.github.com/repos/kete/kete/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kete/kete/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kete/kete/teams","hooks_url":"https://api.github.com/repos/kete/kete/hooks","issue_events_url":"https://api.github.com/repos/kete/kete/issues/events{/number}","events_url":"https://api.github.com/repos/kete/kete/events","assignees_url":"https://api.github.com/repos/kete/kete/assignees{/user}","branches_url":"https://api.github.com/repos/kete/kete/branches{/branch}","tags_url":"https://api.github.com/repos/kete/kete/tags","blobs_url":"https://api.github.com/repos/kete/kete/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kete/kete/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kete/kete/git/refs{/sha}","trees_url":"https://api.github.com/repos/kete/kete/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kete/kete/statuses/{sha}","languages_url":"https://api.github.com/repos/kete/kete/languages","stargazers_url":"https://api.github.com/repos/kete/kete/stargazers","contributors_url":"https://api.github.com/repos/kete/kete/contributors","subscribers_url":"https://api.github.com/repos/kete/kete/subscribers","subscription_url":"https://api.github.com/repos/kete/kete/subscription","commits_url":"https://api.github.com/repos/kete/kete/commits{/sha}","git_commits_url":"https://api.github.com/repos/kete/kete/git/commits{/sha}","comments_url":"https://api.github.com/repos/kete/kete/comments{/number}","issue_comment_url":"https://api.github.com/repos/kete/kete/issues/comments{/number}","contents_url":"https://api.github.com/repos/kete/kete/contents/{+path}","compare_url":"https://api.github.com/repos/kete/kete/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kete/kete/merges","archive_url":"https://api.github.com/repos/kete/kete/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kete/kete/downloads","issues_url":"https://api.github.com/repos/kete/kete/issues{/number}","pulls_url":"https://api.github.com/repos/kete/kete/pulls{/number}","milestones_url":"https://api.github.com/repos/kete/kete/milestones{/number}","notifications_url":"https://api.github.com/repos/kete/kete/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kete/kete/labels{/name}","releases_url":"https://api.github.com/repos/kete/kete/releases{/id}","deployments_url":"https://api.github.com/repos/kete/kete/deployments","created_at":"2008-07-14T07:19:24Z","updated_at":"2017-07-06T04:13:57Z","pushed_at":"2018-02-06T09:32:06Z","git_url":"git://github.com/kete/kete.git","ssh_url":"git@github.com:kete/kete.git","clone_url":"https://github.com/kete/kete.git","svn_url":"https://github.com/kete/kete","homepage":"http://kete.net.nz/","size":26628,"stargazers_count":59,"watchers_count":59,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":10,"open_issues":3,"watchers":59,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kete/kete/pulls/198"},"html":{"href":"https://github.com/kete/kete/pull/198"},"issue":{"href":"https://api.github.com/repos/kete/kete/issues/198"},"comments":{"href":"https://api.github.com/repos/kete/kete/issues/198/comments"},"review_comments":{"href":"https://api.github.com/repos/kete/kete/pulls/198/comments"},"review_comment":{"href":"https://api.github.com/repos/kete/kete/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kete/kete/pulls/198/commits"},"statuses":{"href":"https://api.github.com/repos/kete/kete/statuses/36dec271cd5ad62971c52eb60c4babf4cbdff8dc"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"houndci-bot"}}