summaryrefslogtreecommitdiffstats
path: root/tools/fix-cs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/fix-cs.sh')
-rwxr-xr-xtools/fix-cs.sh24
1 files changed, 0 insertions, 24 deletions
diff --git a/tools/fix-cs.sh b/tools/fix-cs.sh
deleted file mode 100755
index d304da3..0000000
--- a/tools/fix-cs.sh
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/sh
-export PATH=vendor/bin:$PATH
-DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
-if [[ $# -eq 1 ]]
-then
- RUNDIR=$@
-else
- RUNDIR=$(cd $DIR && cd ../ && pwd)/src
-fi
-RESULT=$(phpcs --colors --standard=PSR1,PSR2 $RUNDIR)
-echo "$RESULT"
-echo $RESULT | grep "PHPCBF CAN FIX" > /dev/null
-if [[ $? -eq 0 ]]
-then
- printf "Would you like to fix errors? [Y/n] "
- read answer
- if [[ $answer != "n" ]]
- then
- echo "Running phpcbf: "
- phpcbf --standard=PSR1,PSR2 $RUNDIR
- fi
-fi
-echo "Running php-cs-fixer: "
-php-cs-fixer fix $RUNDIR --level=psr2