Created
August 27, 2012 12:13
-
-
Save cedriclombardot/3487915 to your computer and use it in GitHub Desktop.
Check cs for files before commits
This file contains 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
# See http://cs.sensiolabs.org | |
# Run this command in your git repo to run cs fixer on the modified files | |
git st --porcelain | cut -d" " -f2,3 | cut -d" " -f2 | xargs -I {} sh -c 'php php-cs-fixer.phar fix {}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment