Skip to content

Commit

Permalink
update phpcs.sh
Browse files Browse the repository at this point in the history
replace /bin/bash with /bin/sh
update condition
  • Loading branch information
albertborsos committed Dec 6, 2016
1 parent f1cadc6 commit e34bcdf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions phpcs.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/bash
#!/bin/sh

php ./vendor/bin/phpcs --standard=vendor/mito/yii2-coding-standards/Application src
SRC=$?
php ./vendor/bin/phpcs --standard=vendor/mito/yii2-coding-standards/Application -s --exclude=PSR1.Files.SideEffects,PSR1.Classes.ClassDeclaration --extensions=php tests
TESTS=$?

if [[ "$SRC" != 0 || "$TESTS" != 0 ]]; then
if [ $SRC -ne 0 ] || [ $TESTS -ne 0 ]; then
exit 1
fi
fi

0 comments on commit e34bcdf

Please sign in to comment.