{"action":"created","issue":{"url":"https://api.github.com/repos/kalessil/phpinspectionsea/issues/1148","repository_url":"https://api.github.com/repos/kalessil/phpinspectionsea","labels_url":"https://api.github.com/repos/kalessil/phpinspectionsea/issues/1148/labels{/name}","comments_url":"https://api.github.com/repos/kalessil/phpinspectionsea/issues/1148/comments","events_url":"https://api.github.com/repos/kalessil/phpinspectionsea/issues/1148/events","html_url":"https://github.com/kalessil/phpinspectionsea/issues/1148","id":394812588,"node_id":"MDU6SXNzdWUzOTQ4MTI1ODg=","number":1148,"title":"[Feature Request] extend `'in_array(...)' misused` and `Non-optimal if conditions`","user":{"login":"vladyslavstartsev","id":17382248,"node_id":"MDQ6VXNlcjE3MzgyMjQ4","avatar_url":"https://avatars0.githubusercontent.com/u/17382248?v=4","gravatar_id":"","url":"https://api.github.com/users/vladyslavstartsev","html_url":"https://github.com/vladyslavstartsev","followers_url":"https://api.github.com/users/vladyslavstartsev/followers","following_url":"https://api.github.com/users/vladyslavstartsev/following{/other_user}","gists_url":"https://api.github.com/users/vladyslavstartsev/gists{/gist_id}","starred_url":"https://api.github.com/users/vladyslavstartsev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladyslavstartsev/subscriptions","organizations_url":"https://api.github.com/users/vladyslavstartsev/orgs","repos_url":"https://api.github.com/users/vladyslavstartsev/repos","events_url":"https://api.github.com/users/vladyslavstartsev/events{/privacy}","received_events_url":"https://api.github.com/users/vladyslavstartsev/received_events","type":"User","site_admin":false},"labels":[{"id":462160561,"node_id":"MDU6TGFiZWw0NjIxNjA1NjE=","url":"https://api.github.com/repos/kalessil/phpinspectionsea/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":520350747,"node_id":"MDU6TGFiZWw1MjAzNTA3NDc=","url":"https://api.github.com/repos/kalessil/phpinspectionsea/labels/fixed","name":"fixed","color":"5319e7","default":false}],"state":"closed","locked":false,"assignee":{"login":"kalessil","id":1577185,"node_id":"MDQ6VXNlcjE1NzcxODU=","avatar_url":"https://avatars2.githubusercontent.com/u/1577185?v=4","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},"assignees":[{"login":"kalessil","id":1577185,"node_id":"MDQ6VXNlcjE1NzcxODU=","avatar_url":"https://avatars2.githubusercontent.com/u/1577185?v=4","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}],"milestone":{"url":"https://api.github.com/repos/kalessil/phpinspectionsea/milestones/48","html_url":"https://github.com/kalessil/phpinspectionsea/milestone/48","labels_url":"https://api.github.com/repos/kalessil/phpinspectionsea/milestones/48/labels","id":3868056,"node_id":"MDk6TWlsZXN0b25lMzg2ODA1Ng==","number":48,"title":"U-2.0.12","description":null,"creator":{"login":"kalessil","id":1577185,"node_id":"MDQ6VXNlcjE1NzcxODU=","avatar_url":"https://avatars2.githubusercontent.com/u/1577185?v=4","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},"open_issues":2,"closed_issues":10,"state":"open","created_at":"2018-12-03T20:55:47Z","updated_at":"2018-12-31T13:05:32Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2018-12-29T17:42:02Z","updated_at":"2018-12-31T13:05:32Z","closed_at":"2018-12-31T13:05:32Z","author_association":"CONTRIBUTOR","body":"| Subject        | Details                                                                       |\r\n| :------------- | :---------------------------------------------------------------------------- |\r\n| Issue type     | Feature request                          |\r\n| Plugin         | Php Inspections (EA Extended), v3.0.9.1 |\r\n| Language level |  PHP 7.2                        |\r\n\r\n\r\nThis code (that is marked as `This call is duplicated in conditions set.`)\r\n\r\n```php\r\nif (\r\n    \\Route::currentRouteName() !== 'bar' &&\r\n    \\Route::currentRouteName() !== 'baz'\r\n) {\r\n    //do something\r\n}\r\n```\r\n\r\ncan be converted into this\r\n\r\n```php\r\nif (\\in_array(\\Route::currentRouteName(), [\r\n    'bar',\r\n    'baz'\r\n],true)) {\r\n    //do something\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/kalessil/phpinspectionsea/issues/comments/450643679","html_url":"https://github.com/kalessil/phpinspectionsea/issues/1148#issuecomment-450643679","issue_url":"https://api.github.com/repos/kalessil/phpinspectionsea/issues/1148","id":450643679,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDY0MzY3OQ==","user":{"login":"kalessil","id":1577185,"node_id":"MDQ6VXNlcjE1NzcxODU=","avatar_url":"https://avatars2.githubusercontent.com/u/1577185?v=4","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},"created_at":"2018-12-31T13:05:32Z","updated_at":"2018-12-31T13:05:32Z","author_association":"OWNER","body":"Marking as implemented, still, need to add tests, run QA and Performance tests."}}
{"actor":{"display_login":"kalessil"}}