diff --git a/check b/check index 12ca616..bd77490 100755 --- a/check +++ b/check @@ -16,21 +16,21 @@ offer_run() { exit 1 } -if (php-cs-fixer fix --dry-run --config=.php_cs.php > /dev/null 2>/dev/null); then +if (php-cs-fixer fix --dry-run --config=.php-cs-fixer.php > /dev/null 2>/dev/null); then echo '✅ php-cs-fixer OK' else read -p "⚠️ php-cs-fixer found issues. Fix (Y/n)? " fix case ${fix:0:1} in n|N ) echo '❌ php-cs-fixer FAIL' - offer_run 'php-cs-fixer fix --config=.php_cs.php' + offer_run 'php-cs-fixer fix --config=.php-cs-fixer.php' ;; * ) - if (php-cs-fixer fix --config=.php_cs.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' else echo '❌ php-cs-fixer FAIL' - offer_run 'php-cs-fixer fix --config=.php_cs.php' + offer_run 'php-cs-fixer fix --config=.php-cs-fixer.php' fi ;; esac