Skip to content

Commit 9dfe55a

Browse files
committed
Using phpcbf after analyse with phpcs
1 parent e075785 commit 9dfe55a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/pre-commit

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,16 @@ done
4545
if [ "$FILES" != "" ]
4646
then
4747
echo "Running Code Sniffer..."
48-
${PROJECT}/vendor/bin/phpcbf --standard=PSR1,PSR2 --encoding=utf-8 -n -p $FILES
48+
${PROJECT}/vendor/bin/phpcs --standard=PSR1,PSR2 --encoding=utf-8 -n -p $FILES
4949
if [ $? != 0 ]
5050
then
5151
if [ -n "$STATIC_ANALYSIS_IGNORE_ERRORS" ]
5252
then
5353
echo "Code Sniffer found some errors."
5454
else
5555
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
5658
exit 1
5759
fi
5860
fi

0 commit comments

Comments
 (0)