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 | |
# | |
# adjust php-cs-fixer configuration if needed, see http://cs.sensiolabs.org/ | |
# Redirect output to stderr. | |
exec 1>&2 | |
for f in $(git diff --cached --name-only --diff-filter=AMC | grep -e '\.php$') | |
do | |
php -l "${f}" || exit 1 |
NewerOlder