Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # .git/hooks/pre-push
- printf "Checking PSR2 before pushing\n"
- vendor/bin/phpcs --standard=PSR2 src/AppBundle/ tests/
- OUT=$?
- if [ $OUT -eq 0 ];then
- printf "OK! Pushing...\n"
- else
- printf "Errors found! Not pushing...\n"
- fi
Add Comment
Please, Sign In to add comment