We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd65fee commit 9536a5cCopy full SHA for 9536a5c
1 file changed
bin/check-syntax.sh
@@ -0,0 +1,15 @@
1
+#!/usr/bin/env bash
2
+
3
+PHP='/usr/bin/env php'
4
+RETURN=0
5
6
+# check PHP files
7
+for FILE in `find config-templates hooks lib templates tests www -name "*.php"`; do
8
+ $PHP -l $FILE > /dev/null 2>&1
9
+ if [ $? -ne 0 ]; then
10
+ echo "Syntax check failed for ${FILE}"
11
+ RETURN=`expr ${RETURN} + 1`
12
+ fi
13
+done
14
15
+exit $RETURN
0 commit comments