| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/HostingSpaces/admin/247sms.com/wwwroot/dvsa-test-check-master/ |
Upload File : |
#!/bin/bash
composer install
PHP_FILES=$(find . -path ./vendor -prune -o -type f -iname "*.php" -print)
echo "--- PHP Syntax"
for PHP_FILE in ${PHP_FILES}; do
php -l ${PHP_FILE}
if [ $? -ne 0 ]; then
exit 1
fi
done
echo "--- PHP Standards"
for PHP_FILE in ${PHP_FILES}; do
BASENAME=$(basename ${PHP_FILE})
if [ "${BASENAME}" != "simple_html_dom.php" ]; then
./vendor/bin/phpcs --colors -n ${PHP_FILE}
if [ $? -ne 0 ]; then
exit 1
else
echo "No PEAR standards failures in ${PHP_FILE}"
fi
fi
done