hyperf/.travis/run.check.sh
2023-03-30 20:12:52 +08:00

11 lines
197 B
Bash
Executable File

#!/usr/bin/env bash
set -e
PHP_VER=$(php -r "echo PHP_VERSION_ID;")
if [ $PHP_VER -ge 80100 ]; then
PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer fix src --dry-run
fi
composer analyse src