mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-08-17 16:51:35 +00:00
pre-commit for php-cs-fixer 3
This commit is contained in:
+1
-1
@@ -14,7 +14,7 @@ if [ "$files" != "" ]; then
|
||||
done <<< "$files"
|
||||
|
||||
# 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
|
||||
pass=false
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user