From 46944dc5f43210f5639306d5a439e837ffdf36e1 Mon Sep 17 00:00:00 2001 From: Thai Nguyen Hung Date: Thu, 8 Jun 2023 09:31:53 +0700 Subject: [PATCH] ci: php-cs-fixer in repository scope --- check | 4 ++-- composer.json | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/check b/check index 3d24b54..15584fe 100755 --- a/check +++ b/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 diff --git a/composer.json b/composer.json index 890e2a1..8e27e01 100644 --- a/composer.json +++ b/composer.json @@ -26,7 +26,8 @@ "orchestra/testbench": "^7.0|^8.0", "nunomaduro/larastan": "^1.0|^2.4", "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", "prefer-stable": true,