Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- command='php-cs-fixer fix src/ --fixers=indentation,trailing_spaces,unused_use,php_closing_tag,return,braces,phpdoc_params,eof_ending,extra_empty_lines,include,controls_spaces,elseif'
- files=$($command | wc -l)
- echo $files" files automatically corrected by PHP CS Fixer"
- echo ""
- if [ $files != 0 ]; then
- git ci -am 'Automatically run PHP CS Fixer on post-commit'
- fi
Add Comment
Please, Sign In to add comment