Last active
November 29, 2018 09:46
-
-
Save l3dlp/11658dcef365e5e33f0c7d366ed00047 to your computer and use it in GitHub Desktop.
“/bin/phpcheck“ - quickly check PHP syntax globally - “phpcheck -v“ = verbose mode
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
#!/bin/bash | |
if [ "$1" = "-v" ]; then | |
find . -name "*.php" -exec php -l {} \; | |
else | |
find . -name "*.php" -exec php -l {} \; | grep -v "No syntax errors detected in " | |
fi | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment