pre-commit for php-cs-fixer 3
This commit is contained in:
parent
2a12587f05
commit
6cf20b0a10
|
|
@ -14,7 +14,7 @@ if [ "$files" != "" ]; then
|
||||||
done <<< "$files"
|
done <<< "$files"
|
||||||
|
|
||||||
# Run php-cs-fixer validation before commit
|
# Run php-cs-fixer validation before commit
|
||||||
echo "$files" | xargs ./vendor/bin/php-cs-fixer fix --diff --config .php_cs.dist
|
echo "$files" | xargs ./vendor/bin/php-cs-fixer fix --diff --config .php-cs-fixer.dist.php
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
pass=false
|
pass=false
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue