mirror of
https://github.com/archtechx/enums.git
synced 2025-12-13 08:44:02 +00:00
ci: php-cs-fixer in repository scope
This commit is contained in:
parent
161f04b719
commit
46944dc5f4
2 changed files with 4 additions and 3 deletions
4
check
4
check
|
|
@ -23,14 +23,14 @@ else
|
|||
case ${fix:0:1} in
|
||||
n|N )
|
||||
echo '❌ php-cs-fixer FAIL'
|
||||
offer_run 'php-cs-fixer fix --config=.php-cs-fixer.php'
|
||||
offer_run './vendor/bin/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 'php-cs-fixer fix --config=.php-cs-fixer.php'
|
||||
offer_run './vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php'
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue