Last active
December 30, 2015 16:39
-
-
Save jjsaunier/7855869 to your computer and use it in GitHub Desktop.
PHP CS FIXER
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| php php-cs-fixer.phar fix /path/to/project --level=all |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| return Symfony\CS\Config\Config::create() | |
| ->level(Symfony\CS\FixerInterface::SYMFONY_LEVEL) | |
| ->fixers(array( | |
| 'ordered_use', | |
| 'multiline_spaces_before_semicolon', | |
| 'concat_with_spaces' | |
| )) | |
| ->finder( | |
| Symfony\CS\Finder\DefaultFinder::create() | |
| ->exclude(['vendor', 'app/cache']) | |
| ->in(__DIR__.'/src') | |
| ) | |
| ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment