{"action":"created","issue":{"url":"https://api.github.com/repos/nilportugues/php-json-api/issues/56","repository_url":"https://api.github.com/repos/nilportugues/php-json-api","labels_url":"https://api.github.com/repos/nilportugues/php-json-api/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/nilportugues/php-json-api/issues/56/comments","events_url":"https://api.github.com/repos/nilportugues/php-json-api/issues/56/events","html_url":"https://github.com/nilportugues/php-json-api/issues/56","id":153763273,"number":56,"title":"[Insight] Unused method, property, variable or parameter - in src/Server/Query/QueryObject.php, line 120","user":{"login":"nilportugues","id":550948,"avatar_url":"https://avatars.githubusercontent.com/u/550948?v=3","gravatar_id":"","url":"https://api.github.com/users/nilportugues","html_url":"https://github.com/nilportugues","followers_url":"https://api.github.com/users/nilportugues/followers","following_url":"https://api.github.com/users/nilportugues/following{/other_user}","gists_url":"https://api.github.com/users/nilportugues/gists{/gist_id}","starred_url":"https://api.github.com/users/nilportugues/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nilportugues/subscriptions","organizations_url":"https://api.github.com/users/nilportugues/orgs","repos_url":"https://api.github.com/users/nilportugues/repos","events_url":"https://api.github.com/users/nilportugues/events{/privacy}","received_events_url":"https://api.github.com/users/nilportugues/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-09T12:16:31Z","updated_at":"2016-05-09T12:24:31Z","closed_at":"2016-05-09T12:24:31Z","body":"**[in src/Server/Query/QueryObject.php, line 120](https://github.com/nilportugues/json-api/blob/ab922ff5698db56d93830fd5ef4b86e5da81d93b/src/Server/Query/QueryObject.php#L120)**\r\n\r\n> This `errorBag` local variable is declared but never used. You should remove it.\r\n\r\n```php\r\n            }\r\n\r\n            if (is_array($data)) {\r\n                foreach ($data as $subResource) {\r\n                    if (null == $transformer->getMappingByAlias($subResource)) {\r\n                        $errorBag[] = new InvalidParameterError($subResource, strtolower($paramName));\r\n                    }\r\n                }\r\n            }\r\n        }\r\n    }\r\n```\r\n\r\n---------------------\r\n\r\n_Posted from [SensioLabsInsight](https://insight.sensiolabs.com/projects/e39e4c0e-a402-495b-a763-6e0482e2083d/analyses/19)_"},"comment":{"url":"https://api.github.com/repos/nilportugues/php-json-api/issues/comments/217849978","html_url":"https://github.com/nilportugues/php-json-api/issues/56#issuecomment-217849978","issue_url":"https://api.github.com/repos/nilportugues/php-json-api/issues/56","id":217849978,"user":{"login":"nilportugues","id":550948,"avatar_url":"https://avatars.githubusercontent.com/u/550948?v=3","gravatar_id":"","url":"https://api.github.com/users/nilportugues","html_url":"https://github.com/nilportugues","followers_url":"https://api.github.com/users/nilportugues/followers","following_url":"https://api.github.com/users/nilportugues/following{/other_user}","gists_url":"https://api.github.com/users/nilportugues/gists{/gist_id}","starred_url":"https://api.github.com/users/nilportugues/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nilportugues/subscriptions","organizations_url":"https://api.github.com/users/nilportugues/orgs","repos_url":"https://api.github.com/users/nilportugues/repos","events_url":"https://api.github.com/users/nilportugues/events{/privacy}","received_events_url":"https://api.github.com/users/nilportugues/received_events","type":"User","site_admin":false},"created_at":"2016-05-09T12:24:31Z","updated_at":"2016-05-09T12:24:31Z","body":"https://github.com/nilportugues/php-json-api/commit/7155818c5fe26dc50c33b68e50bd3c701892ee2a"}}