Skip to content

Commit 8e61b71

Browse files
Add command to Composer
1 parent acc8ba2 commit 8e61b71

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

composer.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,11 @@
5555
},
5656
"scripts": {
5757
"test": "phpunit tests/",
58-
"infect": "XDEBUG_MODE=coverage infection --show-mutations"
58+
"infect": "XDEBUG_MODE=coverage infection --show-mutations",
59+
"php-cs-fixer": [
60+
"php-cs-fixer fix --dry-run --verbose --rules=\"@PSR12,align_multiline_comment,array_indentation,blank_line_before_statement,no_unused_imports,no_useless_else,no_useless_return,ordered_imports,phpdoc_scalar,return_assignment,simplified_if_return,trailing_comma_in_multiline\" ./src",
61+
"php-cs-fixer fix --dry-run --verbose --rules=\"@PSR12,align_multiline_comment,array_indentation,blank_line_before_statement,no_unused_imports,no_useless_else,no_useless_return,ordered_imports,phpdoc_scalar,return_assignment,simplified_if_return,trailing_comma_in_multiline\" ./tests"
62+
]
5963
},
6064
"minimum-stability": "stable",
6165
"prefer-stable": true

0 commit comments

Comments
 (0)