2013-05-31 13:48:14 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2013-06-03 15:13:42 +02:00
|
|
|
set -o nounset
|
|
|
|
|
|
|
|
SCRIPTNAME=$(readlink -f $0)
|
|
|
|
DIR=$(dirname $SCRIPTNAME)
|
|
|
|
|
2013-06-03 10:36:27 +02:00
|
|
|
# Make sure that the destination directory for logs and reports exists
|
2013-06-03 15:13:42 +02:00
|
|
|
mkdir -p $DIR/../../build/log
|
2013-06-03 10:36:27 +02:00
|
|
|
|
2013-06-03 15:24:39 +02:00
|
|
|
phpcs -p --standard=PSR2 --extensions=php --encoding=utf-8 --report-checkstyle=$DIR/build/log/phpcs_results.xml --ignore=vendor "$@" $DIR/../..
|
2013-05-31 13:48:14 +02:00
|
|
|
|
|
|
|
exit 0
|