Last active
July 14, 2021 06:30
-
-
Save james2doyle/647fef99fe97516df0c3 to your computer and use it in GitHub Desktop.
Use PHP lint on a folder of PHP files
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
#!/usr/bin/env bash | |
# found on http://kamisama.me/2012/07/02/faster-php-lint/ | |
find my/folder/ -name "*.php" -print0 | xargs -0 -n1 -P8 php -l |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment