Created
August 2, 2018 10:51
-
-
Save xtrasmal/51e63969899d66ea2d2ad82834d13fa2 to your computer and use it in GitHub Desktop.
PHP CS Fixer CLI
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
#!/bin/bash | |
PHP=`which php` | |
$PHP php-cs-fixer fix app --rules='{"@PSR2":true,"array_indentation": true,"array_syntax": {"syntax":"short"},"no_unused_imports": true,"object_operator_without_whitespace": true,"ordered_class_elements": {"sortAlgorithm": "none"},"ordered_imports": {"sortAlgorithm": "length"}}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment