payload: {"action":"created","issue":{"url":"https://api.github.com/repos/nunomaduro/phpinsights/issues/104","repository_url":"https://api.github.com/repos/nunomaduro/phpinsights","labels_url":"https://api.github.com/repos/nunomaduro/phpinsights/issues/104/labels{/name}","comments_url":"https://api.github.com/repos/nunomaduro/phpinsights/issues/104/comments","events_url":"https://api.github.com/repos/nunomaduro/phpinsights/issues/104/events","html_url":"https://github.com/nunomaduro/phpinsights/issues/104","id":445858417,"node_id":"MDU6SXNzdWU0NDU4NTg0MTc=","number":104,"title":"Different results between CI and local development environment","user":{"login":"FFDevelopment","id":47126617,"node_id":"MDQ6VXNlcjQ3MTI2NjE3","avatar_url":"https://avatars0.githubusercontent.com/u/47126617?v=4","gravatar_id":"","url":"https://api.github.com/users/FFDevelopment","html_url":"https://github.com/FFDevelopment","followers_url":"https://api.github.com/users/FFDevelopment/followers","following_url":"https://api.github.com/users/FFDevelopment/following{/other_user}","gists_url":"https://api.github.com/users/FFDevelopment/gists{/gist_id}","starred_url":"https://api.github.com/users/FFDevelopment/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FFDevelopment/subscriptions","organizations_url":"https://api.github.com/users/FFDevelopment/orgs","repos_url":"https://api.github.com/users/FFDevelopment/repos","events_url":"https://api.github.com/users/FFDevelopment/events{/privacy}","received_events_url":"https://api.github.com/users/FFDevelopment/received_events","type":"User","site_admin":false},"labels":[{"id":1297707740,"node_id":"MDU6TGFiZWwxMjk3NzA3NzQw","url":"https://api.github.com/repos/nunomaduro/phpinsights/labels/question","name":"question","color":"d876e3","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2019-05-19T20:03:16Z","updated_at":"2019-06-03T11:56:20Z","closed_at":null,"author_association":"NONE","body":"| Q                | A\r\n| ---------------- | -----\r\n| Bug report?      | no\r\n| Feature request? | no\r\n| Library version  | 1.2.1\r\n\r\nI have now added phpinsights as a command to ScrutinizerCI. Actually, I would expect to get the same results in a CI tool and in my local development environment (Laravel Homestead), but that wasn't the case.\r\n\r\nThese phpinsights rules were active in ScrutinizerCI\r\n• [Code] Forbidden public property:\r\n• [Code] 1 unused private attributes:\r\n• [Code] No setter:\r\n• [Code] Element name minimal length:\r\n• [Code] Useless overriding method:\r\n• [Code] Unused parameter:\r\n• [Code] Useless parentheses:\r\n• [Code] Declare strict types:\r\n• [Code] Empty comment:\r\n• [Code] Todo:\r\n• [Code] Disallow mixed type hint:\r\n• [Code] Type hint declaration:\r\n• [Code] Useless constant type hint:\r\n• [Code] Static closure:\r\n• [Complexity] Having `classes` with more than 5 cyclomatic complexity is prohibited - Consider refactoring:\r\n• [Architecture] Normal classes are forbidden. Classes must be final or abstract:\r\n• [Architecture] Class trait and interface length:\r\n• [Architecture] Property per class limit:\r\n• [Architecture] Function length:\r\n• [Architecture] The use of `traits` is prohibited:\r\n• [Style] Object operator indent:\r\n• [Style] Line length:\r\n• [Style] Alphabetically sorted uses:\r\n\r\nThese phpinsights rules were active in Laravel Homestead.\r\n• [Code] Forbidden public property:\r\n• [Code] 1 unused private attributes:\r\n• [Code] No setter:\r\n• [Code] Element name minimal length:\r\n• [Code] Useless overriding method:\r\n• [Code] Unused parameter:\r\n• [Code] Useless parentheses:\r\n• [Code] Empty comment:\r\n• [Code] Todo:\r\n• [Code] Useless constant type hint:\r\n• [Code] Static closure:\r\n• [Complexity] Having `classes` with more than 5 cyclomatic complexity is prohibited - Consider refactoring:\r\n• [Architecture] Class trait and interface length:\r\n• [Architecture] Property per class limit:\r\n• [Architecture] Function length:\r\n• [Style] Object operator indent:\r\n• [Style] Line length: \r\n\r\nHas anyone made similar or the same experiences?\r\n\r\nI've also checked if the laravel config file and phpinsights are in its latest version and both things are checked."},"comment":{"url":"https://api.github.com/repos/nunomaduro/phpinsights/issues/comments/498226595","html_url":"https://github.com/nunomaduro/phpinsights/issues/104#issuecomment-498226595","issue_url":"https://api.github.com/repos/nunomaduro/phpinsights/issues/104","id":498226595,"node_id":"MDEyOklzc3VlQ29tbWVudDQ5ODIyNjU5NQ==","user":{"login":"olivernybroe","id":5870441,"node_id":"MDQ6VXNlcjU4NzA0NDE=","avatar_url":"https://avatars1.githubusercontent.com/u/5870441?v=4","gravatar_id":"","url":"https://api.github.com/users/olivernybroe","html_url":"https://github.com/olivernybroe","followers_url":"https://api.github.com/users/olivernybroe/followers","following_url":"https://api.github.com/users/olivernybroe/following{/other_user}","gists_url":"https://api.github.com/users/olivernybroe/gists{/gist_id}","starred_url":"https://api.github.com/users/olivernybroe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olivernybroe/subscriptions","organizations_url":"https://api.github.com/users/olivernybroe/orgs","repos_url":"https://api.github.com/users/olivernybroe/repos","events_url":"https://api.github.com/users/olivernybroe/events{/privacy}","received_events_url":"https://api.github.com/users/olivernybroe/received_events","type":"User","site_admin":false},"created_at":"2019-06-03T11:56:20Z","updated_at":"2019-06-03T11:56:20Z","author_association":"COLLABORATOR","body":"So what I can see from here is that the `config/insights.php` file is not being passed to your CI command. Try doing\r\n`vendor/nunomaduro/phpinsights/bin/phpinsights analyse --ansi -v --no-interaction --config-path=config/insights.php`\r\n\r\nA better approach would be to change your CI to also use `php artisan insights`. "}}
other: {"actor":{"display_login":"olivernybroe"}}