Skip to content

Instantly share code, notes, and snippets.

@mehulkaklotar
Created October 6, 2015 13:54
Show Gist options
  • Save mehulkaklotar/04434c068b33968bb64d to your computer and use it in GitHub Desktop.
Save mehulkaklotar/04434c068b33968bb64d to your computer and use it in GitHub Desktop.
PHP Compatibility script
#!/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