From c0a459864be8d79f3a912c2440aab24056291d21 Mon Sep 17 00:00:00 2001 From: Thai Nguyen Hung Date: Thu, 8 Jun 2023 10:35:02 +0700 Subject: [PATCH] ci: globally use `php-cs-fixer` --- check | 4 ++-- composer.json | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/check b/check index 15584fe..3d24b54 100755 --- a/check +++ b/check @@ -23,14 +23,14 @@ else case ${fix:0:1} in n|N ) 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 echo '✅ php-cs-fixer OK' else 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 ;; esac diff --git a/composer.json b/composer.json index 8e27e01..890e2a1 100644 --- a/composer.json +++ b/composer.json @@ -26,8 +26,7 @@ "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", - "friendsofphp/php-cs-fixer": "^3.17" + "pestphp/pest-plugin-laravel": "^1.0|^2.0" }, "minimum-stability": "dev", "prefer-stable": true,