]> git.mxchange.org Git - mailer.git/blob - DOCS/lint.sh
Next wave of lesser getMessage() usage and more EL
[mailer.git] / DOCS / lint.sh
1 #!/bin/sh
2
3 echo "$0: Analysing PHP script for syntax errors (lint) ..."
4 LINT=`find -name "*.php" -exec php -l -f {} 2>&1 \; | grep -v "No syntax errors detected in"`
5
6 if test "${LINT}" != ""; then
7         echo "${LINT}"
8 else
9         echo "$0: No syntax errors found."
10 fi