Created
November 27, 2015 09:34
-
-
Save pix-art/b5e06e0cf12426452d02 to your computer and use it in GitHub Desktop.
Pre commit hook that runs php-cs-fixer on your src folder (Symfony2)
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/sh | |
BASE=$(git rev-parse --show-toplevel) | |
php-cs-fixer self-update | |
php-cs-fixer fix $BASE/src/ --level=symfony |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment