mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-12-03 12:17:48 +08:00
11 lines
197 B
Bash
Executable File
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
|