Skip to content

Commit

Permalink
PISHPS-310: added "fix" parameter to "make csfix" to disable --dry-ru…
Browse files Browse the repository at this point in the history
…n option
  • Loading branch information
m-muxfeld-diw committed Aug 9, 2024
1 parent 4ef80db commit fb647cd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fb647cd

Please sign in to comment.