1
0
Fork 0
mirror of https://github.com/archtechx/enums.git synced 2025-12-13 05:34:04 +00:00

ci: globally use php-cs-fixer

This commit is contained in:
Thai Nguyen Hung 2023-06-08 10:35:02 +07:00
parent 8b90e21803
commit c0a459864b
2 changed files with 3 additions and 4 deletions

4
check
View file

@ -23,14 +23,14 @@ else
case ${fix:0:1} in
n|N )
echo '❌ php-cs-fixer FAIL'
offer_run './vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php'
offer_run 'php-cs-fixer fix --config=.php-cs-fixer.php'
;;
* )
if (php-cs-fixer fix --config=.php-cs-fixer.php > /dev/null 2>/dev/null); then
echo '✅ php-cs-fixer OK'
else
echo '❌ php-cs-fixer FAIL'
offer_run './vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php'
offer_run 'php-cs-fixer fix --config=.php-cs-fixer.php'
fi
;;
esac