{"action":"created","comment":{"url":"https://api.github.com/repos/symfony/symfony/pulls/comments/25566027","id":25566027,"diff_hunk":"@@ -327,7 +327,7 @@ public function testReduce()\n     {\n         $crawler = $this->createTestCrawler()->filterXPath('//ul[1]/li');\n         $nodes = $crawler->reduce(function ($node, $i) {\n-            return $i == 1 ? false : true;\n+            return $i != 1;","path":"src/Symfony/Component/DomCrawler/Tests/CrawlerTest.php","position":5,"original_position":5,"commit_id":"f76b97520510678fb73c35fe3f060be470d51949","original_commit_id":"f76b97520510678fb73c35fe3f060be470d51949","user":{"login":"WouterJ","id":749025,"avatar_url":"https://avatars.githubusercontent.com/u/749025?v=3","gravatar_id":"","url":"https://api.github.com/users/WouterJ","html_url":"https://github.com/WouterJ","followers_url":"https://api.github.com/users/WouterJ/followers","following_url":"https://api.github.com/users/WouterJ/following{/other_user}","gists_url":"https://api.github.com/users/WouterJ/gists{/gist_id}","starred_url":"https://api.github.com/users/WouterJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WouterJ/subscriptions","organizations_url":"https://api.github.com/users/WouterJ/orgs","repos_url":"https://api.github.com/users/WouterJ/repos","events_url":"https://api.github.com/users/WouterJ/events{/privacy}","received_events_url":"https://api.github.com/users/WouterJ/received_events","type":"User","site_admin":false},"body":"as it's a test, it wouldn't hurt that much (and since `$i` is the loop variable, it will always be an integer)","created_at":"2015-03-01T10:18:58Z","updated_at":"2015-03-01T10:18:58Z","html_url":"https://github.com/symfony/symfony/pull/13813#discussion_r25566027","pull_request_url":"https://api.github.com/repos/symfony/symfony/pulls/13813","_links":{"self":{"href":"https://api.github.com/repos/symfony/symfony/pulls/comments/25566027"},"html":{"href":"https://github.com/symfony/symfony/pull/13813#discussion_r25566027"},"pull_request":{"href":"https://api.github.com/repos/symfony/symfony/pulls/13813"}}},"pull_request":{"url":"https://api.github.com/repos/symfony/symfony/pulls/13813","id":30224951,"html_url":"https://github.com/symfony/symfony/pull/13813","diff_url":"https://github.com/symfony/symfony/pull/13813.diff","patch_url":"https://github.com/symfony/symfony/pull/13813.patch","issue_url":"https://api.github.com/repos/symfony/symfony/issues/13813","number":13813,"state":"open","locked":false,"title":"[2.7] [Config] [Console] [DependencyInjection] [DomCrawler] [Form] [HttpKernel] [OptionsResolver] [PropertyAccess] [Security] [Translation] [Yaml] static code analysis, code cleanup","user":{"login":"kalessil","id":1577185,"avatar_url":"https://avatars.githubusercontent.com/u/1577185?v=3","gravatar_id":"","url":"https://api.github.com/users/kalessil","html_url":"https://github.com/kalessil","followers_url":"https://api.github.com/users/kalessil/followers","following_url":"https://api.github.com/users/kalessil/following{/other_user}","gists_url":"https://api.github.com/users/kalessil/gists{/gist_id}","starred_url":"https://api.github.com/users/kalessil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kalessil/subscriptions","organizations_url":"https://api.github.com/users/kalessil/orgs","repos_url":"https://api.github.com/users/kalessil/repos","events_url":"https://api.github.com/users/kalessil/events{/privacy}","received_events_url":"https://api.github.com/users/kalessil/received_events","type":"User","site_admin":false},"body":"| Q             | A\r\n| ------------- | ---\r\n| Bug fix?      | no\r\n| New feature?  | no\r\n| BC breaks?    | no\r\n| Deprecations? | no\r\n| Tests pass?   | yes\r\n| Fixed tickets | \r\n| License       | MIT\r\n| Doc PR        | \r\n\r\nFollowing is included (no functional changes, found with <a href=\"https://plugins.jetbrains.com/plugin/7622?pr=phpStorm\">Php Inspections (EA Extended)</a>):\r\n- Fixed couple of concatenation as array index warnings\r\n- Slow alter in foreach inspection selectively fixes\r\n- Unset calls can be merged inspection fixes\r\n- array_search in in_array context inspection fixes\r\n- Is null usage inspection fixes\r\n- Prefixed increment/decrement inspection fixes\r\n- Elvis operator can be used inspection fixes\r\n- Alias functions usage inspection fixes\r\n- Ternary operator simplification inspection fixes\r\n- _ _ DIR _ _ equivalent inspection fixes\r\n\r\n","created_at":"2015-02-28T14:23:41Z","updated_at":"2015-03-01T10:18:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"80cdb40bdd9311052011dea74009a4c53066cf13","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/symfony/symfony/pulls/13813/commits","review_comments_url":"https://api.github.com/repos/symfony/symfony/pulls/13813/comments","review_comment_url":"https://api.github.com/repos/symfony/symfony/pulls/comments{/number}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/13813/comments","statuses_url":"https://api.github.com/repos/symfony/symfony/statuses/f76b97520510678fb73c35fe3f060be470d51949","head":{"label":"kalessil:SCA-SQUASH","ref":"SCA-SQUASH","sha":"f76b97520510678fb73c35fe3f060be470d51949","user":{"login":"kalessil","id":1577185,"avatar_url":"https://avatars.githubusercontent.com/u/1577185?v=3","gravatar_id":"","url":"https://api.github.com/users/kalessil","html_url":"https://github.com/kalessil","followers_url":"https://api.github.com/users/kalessil/followers","following_url":"https://api.github.com/users/kalessil/following{/other_user}","gists_url":"https://api.github.com/users/kalessil/gists{/gist_id}","starred_url":"https://api.github.com/users/kalessil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kalessil/subscriptions","organizations_url":"https://api.github.com/users/kalessil/orgs","repos_url":"https://api.github.com/users/kalessil/repos","events_url":"https://api.github.com/users/kalessil/events{/privacy}","received_events_url":"https://api.github.com/users/kalessil/received_events","type":"User","site_admin":false},"repo":{"id":31438589,"name":"symfony","full_name":"kalessil/symfony","owner":{"login":"kalessil","id":1577185,"avatar_url":"https://avatars.githubusercontent.com/u/1577185?v=3","gravatar_id":"","url":"https://api.github.com/users/kalessil","html_url":"https://github.com/kalessil","followers_url":"https://api.github.com/users/kalessil/followers","following_url":"https://api.github.com/users/kalessil/following{/other_user}","gists_url":"https://api.github.com/users/kalessil/gists{/gist_id}","starred_url":"https://api.github.com/users/kalessil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kalessil/subscriptions","organizations_url":"https://api.github.com/users/kalessil/orgs","repos_url":"https://api.github.com/users/kalessil/repos","events_url":"https://api.github.com/users/kalessil/events{/privacy}","received_events_url":"https://api.github.com/users/kalessil/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kalessil/symfony","description":"The Symfony PHP framework","fork":true,"url":"https://api.github.com/repos/kalessil/symfony","forks_url":"https://api.github.com/repos/kalessil/symfony/forks","keys_url":"https://api.github.com/repos/kalessil/symfony/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kalessil/symfony/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kalessil/symfony/teams","hooks_url":"https://api.github.com/repos/kalessil/symfony/hooks","issue_events_url":"https://api.github.com/repos/kalessil/symfony/issues/events{/number}","events_url":"https://api.github.com/repos/kalessil/symfony/events","assignees_url":"https://api.github.com/repos/kalessil/symfony/assignees{/user}","branches_url":"https://api.github.com/repos/kalessil/symfony/branches{/branch}","tags_url":"https://api.github.com/repos/kalessil/symfony/tags","blobs_url":"https://api.github.com/repos/kalessil/symfony/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kalessil/symfony/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kalessil/symfony/git/refs{/sha}","trees_url":"https://api.github.com/repos/kalessil/symfony/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kalessil/symfony/statuses/{sha}","languages_url":"https://api.github.com/repos/kalessil/symfony/languages","stargazers_url":"https://api.github.com/repos/kalessil/symfony/stargazers","contributors_url":"https://api.github.com/repos/kalessil/symfony/contributors","subscribers_url":"https://api.github.com/repos/kalessil/symfony/subscribers","subscription_url":"https://api.github.com/repos/kalessil/symfony/subscription","commits_url":"https://api.github.com/repos/kalessil/symfony/commits{/sha}","git_commits_url":"https://api.github.com/repos/kalessil/symfony/git/commits{/sha}","comments_url":"https://api.github.com/repos/kalessil/symfony/comments{/number}","issue_comment_url":"https://api.github.com/repos/kalessil/symfony/issues/comments{/number}","contents_url":"https://api.github.com/repos/kalessil/symfony/contents/{+path}","compare_url":"https://api.github.com/repos/kalessil/symfony/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kalessil/symfony/merges","archive_url":"https://api.github.com/repos/kalessil/symfony/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kalessil/symfony/downloads","issues_url":"https://api.github.com/repos/kalessil/symfony/issues{/number}","pulls_url":"https://api.github.com/repos/kalessil/symfony/pulls{/number}","milestones_url":"https://api.github.com/repos/kalessil/symfony/milestones{/number}","notifications_url":"https://api.github.com/repos/kalessil/symfony/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kalessil/symfony/labels{/name}","releases_url":"https://api.github.com/repos/kalessil/symfony/releases{/id}","created_at":"2015-02-27T20:51:56Z","updated_at":"2015-02-27T20:52:11Z","pushed_at":"2015-03-01T06:04:11Z","git_url":"git://github.com/kalessil/symfony.git","ssh_url":"git@github.com:kalessil/symfony.git","clone_url":"https://github.com/kalessil/symfony.git","svn_url":"https://github.com/kalessil/symfony","homepage":"symfony.com","size":52367,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":false,"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":"2.7"}},"base":{"label":"symfony:2.7","ref":"2.7","sha":"469e70d5be8c0792de029b25f6f5396d6efc005e","user":{"login":"symfony","id":143937,"avatar_url":"https://avatars.githubusercontent.com/u/143937?v=3","gravatar_id":"","url":"https://api.github.com/users/symfony","html_url":"https://github.com/symfony","followers_url":"https://api.github.com/users/symfony/followers","following_url":"https://api.github.com/users/symfony/following{/other_user}","gists_url":"https://api.github.com/users/symfony/gists{/gist_id}","starred_url":"https://api.github.com/users/symfony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/symfony/subscriptions","organizations_url":"https://api.github.com/users/symfony/orgs","repos_url":"https://api.github.com/users/symfony/repos","events_url":"https://api.github.com/users/symfony/events{/privacy}","received_events_url":"https://api.github.com/users/symfony/received_events","type":"Organization","site_admin":false},"repo":{"id":458058,"name":"symfony","full_name":"symfony/symfony","owner":{"login":"symfony","id":143937,"avatar_url":"https://avatars.githubusercontent.com/u/143937?v=3","gravatar_id":"","url":"https://api.github.com/users/symfony","html_url":"https://github.com/symfony","followers_url":"https://api.github.com/users/symfony/followers","following_url":"https://api.github.com/users/symfony/following{/other_user}","gists_url":"https://api.github.com/users/symfony/gists{/gist_id}","starred_url":"https://api.github.com/users/symfony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/symfony/subscriptions","organizations_url":"https://api.github.com/users/symfony/orgs","repos_url":"https://api.github.com/users/symfony/repos","events_url":"https://api.github.com/users/symfony/events{/privacy}","received_events_url":"https://api.github.com/users/symfony/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/symfony/symfony","description":"The Symfony PHP framework","fork":false,"url":"https://api.github.com/repos/symfony/symfony","forks_url":"https://api.github.com/repos/symfony/symfony/forks","keys_url":"https://api.github.com/repos/symfony/symfony/keys{/key_id}","collaborators_url":"https://api.github.com/repos/symfony/symfony/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/symfony/symfony/teams","hooks_url":"https://api.github.com/repos/symfony/symfony/hooks","issue_events_url":"https://api.github.com/repos/symfony/symfony/issues/events{/number}","events_url":"https://api.github.com/repos/symfony/symfony/events","assignees_url":"https://api.github.com/repos/symfony/symfony/assignees{/user}","branches_url":"https://api.github.com/repos/symfony/symfony/branches{/branch}","tags_url":"https://api.github.com/repos/symfony/symfony/tags","blobs_url":"https://api.github.com/repos/symfony/symfony/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/symfony/symfony/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/symfony/symfony/git/refs{/sha}","trees_url":"https://api.github.com/repos/symfony/symfony/git/trees{/sha}","statuses_url":"https://api.github.com/repos/symfony/symfony/statuses/{sha}","languages_url":"https://api.github.com/repos/symfony/symfony/languages","stargazers_url":"https://api.github.com/repos/symfony/symfony/stargazers","contributors_url":"https://api.github.com/repos/symfony/symfony/contributors","subscribers_url":"https://api.github.com/repos/symfony/symfony/subscribers","subscription_url":"https://api.github.com/repos/symfony/symfony/subscription","commits_url":"https://api.github.com/repos/symfony/symfony/commits{/sha}","git_commits_url":"https://api.github.com/repos/symfony/symfony/git/commits{/sha}","comments_url":"https://api.github.com/repos/symfony/symfony/comments{/number}","issue_comment_url":"https://api.github.com/repos/symfony/symfony/issues/comments{/number}","contents_url":"https://api.github.com/repos/symfony/symfony/contents/{+path}","compare_url":"https://api.github.com/repos/symfony/symfony/compare/{base}...{head}","merges_url":"https://api.github.com/repos/symfony/symfony/merges","archive_url":"https://api.github.com/repos/symfony/symfony/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/symfony/symfony/downloads","issues_url":"https://api.github.com/repos/symfony/symfony/issues{/number}","pulls_url":"https://api.github.com/repos/symfony/symfony/pulls{/number}","milestones_url":"https://api.github.com/repos/symfony/symfony/milestones{/number}","notifications_url":"https://api.github.com/repos/symfony/symfony/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/symfony/symfony/labels{/name}","releases_url":"https://api.github.com/repos/symfony/symfony/releases{/id}","created_at":"2010-01-04T14:21:21Z","updated_at":"2015-02-28T23:55:45Z","pushed_at":"2015-02-28T23:55:45Z","git_url":"git://github.com/symfony/symfony.git","ssh_url":"git@github.com:symfony/symfony.git","clone_url":"https://github.com/symfony/symfony.git","svn_url":"https://github.com/symfony/symfony","homepage":"symfony.com","size":195369,"stargazers_count":9757,"watchers_count":9757,"language":"PHP","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":3810,"mirror_url":null,"open_issues_count":749,"forks":3810,"open_issues":749,"watchers":9757,"default_branch":"2.7"}},"_links":{"self":{"href":"https://api.github.com/repos/symfony/symfony/pulls/13813"},"html":{"href":"https://github.com/symfony/symfony/pull/13813"},"issue":{"href":"https://api.github.com/repos/symfony/symfony/issues/13813"},"comments":{"href":"https://api.github.com/repos/symfony/symfony/issues/13813/comments"},"review_comments":{"href":"https://api.github.com/repos/symfony/symfony/pulls/13813/comments"},"review_comment":{"href":"https://api.github.com/repos/symfony/symfony/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/symfony/symfony/pulls/13813/commits"},"statuses":{"href":"https://api.github.com/repos/symfony/symfony/statuses/f76b97520510678fb73c35fe3f060be470d51949"}}}}