Skip to content

Commit 632366f

Browse files
committed
Update php cs fixer
1 parent cb60017 commit 632366f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

composer.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,14 @@
2323
"squizlabs/php_codesniffer": "^3"
2424
},
2525
"scripts": {
26-
"cs:check": "php-cs-fixer fix --dry-run --format=txt --verbose --config=.cs.php --ansi",
27-
"cs:fix": "php-cs-fixer fix --config=.cs.php --ansi --verbose",
26+
"cs:check": [
27+
"@putenv PHP_CS_FIXER_IGNORE_ENV=1",
28+
"php-cs-fixer fix --dry-run --format=txt --verbose --config=.cs.php --ansi"
29+
],
30+
"cs:fix": [
31+
"@putenv PHP_CS_FIXER_IGNORE_ENV=1",
32+
"php-cs-fixer fix --config=.cs.php --ansi --verbose"
33+
],
2834
"sniffer:check": "phpcs --standard=phpcs.xml",
2935
"sniffer:fix": "phpcbf --standard=phpcs.xml",
3036
"stan": "phpstan analyse -c phpstan.neon --no-progress --ansi",

0 commit comments

Comments
 (0)