Skip to content

Instantly share code, notes, and snippets.

@tristanbailey
Forked from james2doyle/phplint-folder.sh
Created October 11, 2018 09:00
Show Gist options
  • Save tristanbailey/4189f60f405de2dde9697f4fb667317d to your computer and use it in GitHub Desktop.
Save tristanbailey/4189f60f405de2dde9697f4fb667317d to your computer and use it in GitHub Desktop.
Use PHP lint on a folder of PHP files
#!/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