Created
March 30, 2015 10:58
-
-
Save eniuz/17c80ad19a946c631b46 to your computer and use it in GitHub Desktop.
php lint from bash or zshell
This file contains hidden or 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
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