Skip to content

Commit

Permalink
phplint added
Browse files Browse the repository at this point in the history
  • Loading branch information
Stardog committed Sep 19, 2017
1 parent 988c700 commit 70b9be2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .travis-build/phplint
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

err=0

find "$1" -name '*.php' | while read i; do
php -l "$i"
if [ $? -ne 0 ]; then err=1; fi
done

exit $err

0 comments on commit 70b9be2

Please sign in to comment.