From fb647cdb0ce800f29141a46574b3d5a0fd35edf6 Mon Sep 17 00:00:00 2001 From: Marvin Muxfeld Date: Fri, 9 Aug 2024 15:29:22 +0200 Subject: [PATCH] PISHPS-310: added "fix" parameter to "make csfix" to disable --dry-run option --- makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/makefile b/makefile index 855ffd852..45b9d9c4e 100644 --- a/makefile +++ b/makefile @@ -81,7 +81,11 @@ phpmin: ## Starts the PHP compatibility checks @php vendor/bin/phpcs -p --standard=PHPCompatibility --extensions=php --runtime-set testVersion 7.4 ./src csfix: ## Starts the PHP CS Fixer +ifndef fix @PHP_CS_FIXER_IGNORE_ENV=1 php vendor/bin/php-cs-fixer fix --config=./.php_cs.php --dry-run +else + @PHP_CS_FIXER_IGNORE_ENV=1 php vendor/bin/php-cs-fixer fix --config=./.php_cs.php +endif stan: ## Starts the PHPStan Analyser @php vendor/bin/phpstan analyse -c ./.phpstan.neon