Created
October 6, 2015 13:54
-
-
Save mehulkaklotar/04434c068b33968bb64d to your computer and use it in GitHub Desktop.
PHP Compatibility script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
for dir in /DIRECTORY_PATH/*/ | |
do | |
dir=${dir%*/} | |
echo ${dir##*/} | |
cd "$dir" | |
phpcs --standard=PHPCompatibility --runtime-set testVersion 5.6 $(find . -name '*.php') >> /DIRECTORY_PATH/${dir##*/}.log | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment