Skip to content

Instantly share code, notes, and snippets.

@kurtpayne
Created July 3, 2012 18:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kurtpayne/3041476 to your computer and use it in GitHub Desktop.
Save kurtpayne/3041476 to your computer and use it in GitHub Desktop.
php lint helper
#!/bin/bash
find $1 \( -type f -and \( -name "*.php" -or -name "*.inc" -or -name "*.phtml" \) \) -exec php -l {} \; | grep -v "No syntax errors"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment