{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-sdk-for-php/issues/794","repository_url":"https://api.github.com/repos/Azure/azure-sdk-for-php","labels_url":"https://api.github.com/repos/Azure/azure-sdk-for-php/issues/794/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-sdk-for-php/issues/794/comments","events_url":"https://api.github.com/repos/Azure/azure-sdk-for-php/issues/794/events","html_url":"https://github.com/Azure/azure-sdk-for-php/pull/794","id":145424926,"number":794,"title":"Adopt PSR-2 as basic CS + add requirement for `php-cs-fixer`","user":{"login":"phansys","id":1231441,"avatar_url":"https://avatars.githubusercontent.com/u/1231441?v=3","gravatar_id":"","url":"https://api.github.com/users/phansys","html_url":"https://github.com/phansys","followers_url":"https://api.github.com/users/phansys/followers","following_url":"https://api.github.com/users/phansys/following{/other_user}","gists_url":"https://api.github.com/users/phansys/gists{/gist_id}","starred_url":"https://api.github.com/users/phansys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phansys/subscriptions","organizations_url":"https://api.github.com/users/phansys/orgs","repos_url":"https://api.github.com/users/phansys/repos","events_url":"https://api.github.com/users/phansys/events{/privacy}","received_events_url":"https://api.github.com/users/phansys/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Azure/azure-sdk-for-php/labels/cla-not-required","name":"cla-not-required","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-04-02T22:25:33Z","updated_at":"2016-05-04T01:21:36Z","closed_at":"2016-05-04T00:16:20Z","pull_request":{"url":"https://api.github.com/repos/Azure/azure-sdk-for-php/pulls/794","html_url":"https://github.com/Azure/azure-sdk-for-php/pull/794","diff_url":"https://github.com/Azure/azure-sdk-for-php/pull/794.diff","patch_url":"https://github.com/Azure/azure-sdk-for-php/pull/794.patch"},"body":"| Q             | A\n| ------------- | ---\n| Bug fix?      | no\n| New feature?  | yes\n| BC breaks?    | no\n| Deprecations? | no\n| Tests pass?   | yes\n| Fixed tickets | #793\n| License       | MIT\n| Doc PR        |"},"comment":{"url":"https://api.github.com/repos/Azure/azure-sdk-for-php/issues/comments/216715419","html_url":"https://github.com/Azure/azure-sdk-for-php/pull/794#issuecomment-216715419","issue_url":"https://api.github.com/repos/Azure/azure-sdk-for-php/issues/794","id":216715419,"user":{"login":"phansys","id":1231441,"avatar_url":"https://avatars.githubusercontent.com/u/1231441?v=3","gravatar_id":"","url":"https://api.github.com/users/phansys","html_url":"https://github.com/phansys","followers_url":"https://api.github.com/users/phansys/followers","following_url":"https://api.github.com/users/phansys/following{/other_user}","gists_url":"https://api.github.com/users/phansys/gists{/gist_id}","starred_url":"https://api.github.com/users/phansys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phansys/subscriptions","organizations_url":"https://api.github.com/users/phansys/orgs","repos_url":"https://api.github.com/users/phansys/repos","events_url":"https://api.github.com/users/phansys/events{/privacy}","received_events_url":"https://api.github.com/users/phansys/received_events","type":"User","site_admin":false},"created_at":"2016-05-04T01:21:35Z","updated_at":"2016-05-04T01:21:35Z","body":"I've asked you to tell me if it was right before merging in order to squash the commits @yaqiyang; otherwise the commit history becomes untidy. I've opened an issue for this topic some time ago: #771.\r\nAnswering your question, if you only want to check if the code respect the configured rules, you must run `./vendor/bin/php-cs-fixer --dry-run --diff`. Note that without the `--dry-run` option, the command will update the files fixing the offending rules."}}