Skip to content

Instantly share code, notes, and snippets.

@eniuz
Created March 30, 2015 10:58
Show Gist options
  • Save eniuz/17c80ad19a946c631b46 to your computer and use it in GitHub Desktop.
Save eniuz/17c80ad19a946c631b46 to your computer and use it in GitHub Desktop.
php lint from bash or zshell
function phplint(){
dir="$@";
if [ $# -eq 0 ]
then
echo "No arguments supplied";
return;
fi
find $dir -name '*.php' | xargs -n1 php -l
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment