Skip to content

Instantly share code, notes, and snippets.

@kurtpayne
Created July 3, 2012 18:11
Show Gist options
  • 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