mirror of
https://github.com/archtechx/enums.git
synced 2025-12-12 15:34:04 +00:00
ci: globally use php-cs-fixer
This commit is contained in:
parent
8b90e21803
commit
c0a459864b
2 changed files with 3 additions and 4 deletions
4
check
4
check
|
|
@ -23,14 +23,14 @@ else
|
||||||
case ${fix:0:1} in
|
case ${fix:0:1} in
|
||||||
n|N )
|
n|N )
|
||||||
echo '❌ php-cs-fixer FAIL'
|
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
|
if (php-cs-fixer fix --config=.php-cs-fixer.php > /dev/null 2>/dev/null); then
|
||||||
echo '✅ php-cs-fixer OK'
|
echo '✅ php-cs-fixer OK'
|
||||||
else
|
else
|
||||||
echo '❌ php-cs-fixer FAIL'
|
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
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
||||||
|
|
@ -26,8 +26,7 @@
|
||||||
"orchestra/testbench": "^7.0|^8.0",
|
"orchestra/testbench": "^7.0|^8.0",
|
||||||
"nunomaduro/larastan": "^1.0|^2.4",
|
"nunomaduro/larastan": "^1.0|^2.4",
|
||||||
"pestphp/pest": "^1.2|^2.0",
|
"pestphp/pest": "^1.2|^2.0",
|
||||||
"pestphp/pest-plugin-laravel": "^1.0|^2.0",
|
"pestphp/pest-plugin-laravel": "^1.0|^2.0"
|
||||||
"friendsofphp/php-cs-fixer": "^3.17"
|
|
||||||
},
|
},
|
||||||
"minimum-stability": "dev",
|
"minimum-stability": "dev",
|
||||||
"prefer-stable": true,
|
"prefer-stable": true,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue