We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e075785 commit 9dfe55aCopy full SHA for 9dfe55a
bin/pre-commit
@@ -45,14 +45,16 @@ done
45
if [ "$FILES" != "" ]
46
then
47
echo "Running Code Sniffer..."
48
- ${PROJECT}/vendor/bin/phpcbf --standard=PSR1,PSR2 --encoding=utf-8 -n -p $FILES
+ ${PROJECT}/vendor/bin/phpcs --standard=PSR1,PSR2 --encoding=utf-8 -n -p $FILES
49
if [ $? != 0 ]
50
51
if [ -n "$STATIC_ANALYSIS_IGNORE_ERRORS" ]
52
53
echo "Code Sniffer found some errors."
54
else
55
echo "Fix the Code Sniffer errors before commit."
56
+ echo "Trying to fix errors with phpcbf."
57
+ ${PROJECT}/vendor/bin/phpcbf --standard=PSR1,PSR2 --encoding=utf-8 -n -p $FILES
58
exit 1
59
fi
60
0 commit comments