{"action":"created","issue":{"url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/1537","repository_url":"https://api.github.com/repos/Glavin001/atom-beautify","labels_url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/1537/labels{/name}","comments_url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/1537/comments","events_url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/1537/events","html_url":"https://github.com/Glavin001/atom-beautify/issues/1537","id":211193908,"number":1537,"title":"Config file name for php-cs-fixer","user":{"login":"mjanser","id":1826722,"avatar_url":"https://avatars0.githubusercontent.com/u/1826722?v=3","gravatar_id":"","url":"https://api.github.com/users/mjanser","html_url":"https://github.com/mjanser","followers_url":"https://api.github.com/users/mjanser/followers","following_url":"https://api.github.com/users/mjanser/following{/other_user}","gists_url":"https://api.github.com/users/mjanser/gists{/gist_id}","starred_url":"https://api.github.com/users/mjanser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjanser/subscriptions","organizations_url":"https://api.github.com/users/mjanser/orgs","repos_url":"https://api.github.com/users/mjanser/repos","events_url":"https://api.github.com/users/mjanser/events{/privacy}","received_events_url":"https://api.github.com/users/mjanser/received_events","type":"User","site_admin":false},"labels":[{"id":83711081,"url":"https://api.github.com/repos/Glavin001/atom-beautify/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-03-01T20:10:15Z","updated_at":"2017-05-13T03:03:44Z","closed_at":null,"body":"The name of the config file for php-cs-fixer is hard-coded as `.php_cs`. This should be extended to also support `.php_cs.dist`.\r\n\r\nReference to code: https://github.com/Glavin001/atom-beautify/blob/cdb52a873d1b025faace99b566cc4f790f061325/src/beautifiers/php-cs-fixer.coffee#L20\r\n\r\nAdditionally it could be helpful to run php-cs-fixer with the project directory as working directory. This would enable the possibility to use a shell script to do some more advanced things without loosing context."},"comment":{"url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/comments/301221248","html_url":"https://github.com/Glavin001/atom-beautify/issues/1537#issuecomment-301221248","issue_url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/1537","id":301221248,"user":{"login":"sbine","id":1902973,"avatar_url":"https://avatars0.githubusercontent.com/u/1902973?v=3","gravatar_id":"","url":"https://api.github.com/users/sbine","html_url":"https://github.com/sbine","followers_url":"https://api.github.com/users/sbine/followers","following_url":"https://api.github.com/users/sbine/following{/other_user}","gists_url":"https://api.github.com/users/sbine/gists{/gist_id}","starred_url":"https://api.github.com/users/sbine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbine/subscriptions","organizations_url":"https://api.github.com/users/sbine/orgs","repos_url":"https://api.github.com/users/sbine/repos","events_url":"https://api.github.com/users/sbine/events{/privacy}","received_events_url":"https://api.github.com/users/sbine/received_events","type":"User","site_admin":false},"created_at":"2017-05-13T03:03:44Z","updated_at":"2017-05-13T03:03:44Z","body":"Submitted #1661 which adds a new PHP-CS-Fixer config file setting and automatically scans for `.php_cs.dist` in addition to `.php_cs`.\r\n\r\nI don't think it's worth supporting automatic config files beyond the two standard options referenced throughout the [PHP-CS-Fixer docs](https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/master/README.rst), but the new setting does allow for custom config files in unusual locations (e.g. `./standards/.php_cs.dist`) and should therefore satisfy most use cases."}}
{"actor":{"display_login":"sbine"}}