From 31db877574f0bd8b09bc7da1ffb7f22037b6bee7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Mon, 24 May 2021 17:05:05 +0200 Subject: [PATCH] php-cs-fixer 3 --- check | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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