Last active
February 18, 2021 13:25
-
-
Save kitzberger/55fbb6c76d35d6db1055621e08c39a80 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
function git-php-cs-fixer() { | |
files=$(git ls-files \*.php) | |
for file in $files | |
do | |
php-cs-fixer fix --rules=@PSR12 -- $file | |
done | |
} |
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
# install php cs fixer | |
composer require --global friendsofphp/php-cs-fixer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment