phpmyadmin/tests/ci-phplint
Maurício Meneghini Fauth 1d1c55e250
Move test directory to tests
- Related to #18512

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-11-30 10:47:42 -03:00

17 lines
310 B
Bash
Executable File

#!/bin/sh
FILES=$(find . -name '*.php' -not -path './vendor/*' -not -path './tmp/*' -not -path './node_modules/*')
result=0
for FILE in $FILES ; do
if [ -f "$FILE" ] ; then
php -l "$FILE"
ret=$?
if [ $ret != 0 ] ; then
result=$ret
fi
fi
done
exit $result