forked from loafle/openapi-generator-original
* better operationId handling, add CI for PHP slim * use spaces instead of tabs * replace tab with space * install php
12 lines
302 B
Bash
Executable File
12 lines
302 B
Bash
Executable File
#!/bin/bash
|
|
# a simple script to perform a syntax check on php files using "php -l"
|
|
|
|
for i in $( find . -name "*.php" ); do
|
|
result=`php -l $i | grep "No syntax errors detected"`
|
|
exit_status=$?
|
|
if [ $exit_status -eq 1 ]; then
|
|
echo "Syntax errors with $i"
|
|
exit 1;
|
|
fi
|
|
done
|