{"action":"created","issue":{"url":"https://api.github.com/repos/thephpleague/skeleton/issues/41","repository_url":"https://api.github.com/repos/thephpleague/skeleton","labels_url":"https://api.github.com/repos/thephpleague/skeleton/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/thephpleague/skeleton/issues/41/comments","events_url":"https://api.github.com/repos/thephpleague/skeleton/issues/41/events","html_url":"https://github.com/thephpleague/skeleton/pull/41","id":78202008,"number":41,"title":"Add Composer scripts \"check-codestyle\" & \"fix-codestyle\"","user":{"login":"ravage84","id":625761,"avatar_url":"https://avatars.githubusercontent.com/u/625761?v=3","gravatar_id":"","url":"https://api.github.com/users/ravage84","html_url":"https://github.com/ravage84","followers_url":"https://api.github.com/users/ravage84/followers","following_url":"https://api.github.com/users/ravage84/following{/other_user}","gists_url":"https://api.github.com/users/ravage84/gists{/gist_id}","starred_url":"https://api.github.com/users/ravage84/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ravage84/subscriptions","organizations_url":"https://api.github.com/users/ravage84/orgs","repos_url":"https://api.github.com/users/ravage84/repos","events_url":"https://api.github.com/users/ravage84/events{/privacy}","received_events_url":"https://api.github.com/users/ravage84/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2015-05-19T18:33:13Z","updated_at":"2016-07-06T17:48:37Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/thephpleague/skeleton/pulls/41","html_url":"https://github.com/thephpleague/skeleton/pull/41","diff_url":"https://github.com/thephpleague/skeleton/pull/41.diff","patch_url":"https://github.com/thephpleague/skeleton/pull/41.patch"},"body":"This adds the PHP CodeSniffer as development dependency and adds two Composer scripts \"check-codestyle\" & \"fix-codestyle\" for checking and auto-fixing the code style.\r\n\r\nPartly relevant: https://github.com/thephpleague/skeleton/issues/21#issuecomment-103568309\r\n\r\nUPDATE: Fixed through https://github.com/thephpleague/skeleton/pull/41#issuecomment-104071697 by  @gsherwood \r\n~~There is one \"imperfection\", though...~~\r\n~~If there are CS errors and/or warnings found by phpcs, Composer will report the following error:~~\r\n\r\n````\r\nScript phpcs -p --standard=PSR2 src tests handling the check-codesyle event returned with an error\r\n\r\n\r\n\r\n  [RuntimeException]\r\n  Error Output:\r\n\r\n\r\n\r\ncheck-codesyle [--dev] [--no-dev] [args1] ... [argsN]\r\n````\r\n\r\n~~This is due to the exit code that phpcs returns if errors and/or warnings are found.~~\r\n\r\n~~This can be suppressed through:~~\r\n\r\n```` bash\r\nphpcs --config-set ignore_errors_on_exit 1\r\nphpcs --config-set ignore_warnings_on_exit 1\r\n````\r\n\r\n~~https://github.com/squizlabs/PHP_CodeSniffer/wiki/Configuration-Options#ignoring-errors-when-generating-the-exit-code~~\r\n\r\n~~Unfortunately there is no CLI switch for them when running the check.~~"},"comment":{"url":"https://api.github.com/repos/thephpleague/skeleton/issues/comments/230850792","html_url":"https://github.com/thephpleague/skeleton/pull/41#issuecomment-230850792","issue_url":"https://api.github.com/repos/thephpleague/skeleton/issues/41","id":230850792,"user":{"login":"TomasVotruba","id":924196,"avatar_url":"https://avatars.githubusercontent.com/u/924196?v=3","gravatar_id":"","url":"https://api.github.com/users/TomasVotruba","html_url":"https://github.com/TomasVotruba","followers_url":"https://api.github.com/users/TomasVotruba/followers","following_url":"https://api.github.com/users/TomasVotruba/following{/other_user}","gists_url":"https://api.github.com/users/TomasVotruba/gists{/gist_id}","starred_url":"https://api.github.com/users/TomasVotruba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomasVotruba/subscriptions","organizations_url":"https://api.github.com/users/TomasVotruba/orgs","repos_url":"https://api.github.com/users/TomasVotruba/repos","events_url":"https://api.github.com/users/TomasVotruba/events{/privacy}","received_events_url":"https://api.github.com/users/TomasVotruba/received_events","type":"User","site_admin":false},"created_at":"2016-07-06T17:48:37Z","updated_at":"2016-07-06T17:48:37Z","body":"Ping\r\n"}}
{"actor":{"display_login":"TomasVotruba"}}