pre-commit for php-cs-fixer 3

This commit is contained in:
Adrien Crivelli 2021-11-17 23:14:48 +09:00
parent 2a12587f05
commit 6cf20b0a10
No known key found for this signature in database
GPG Key ID: 16D79B903B4B5874
1 changed files with 1 additions and 1 deletions

View File

@ -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