a guest Dec 16th, 2018 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- 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'
RAW Paste Data