We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f2db2a commit e5d43abCopy full SHA for e5d43ab
README.md
@@ -69,7 +69,22 @@ $rules = \IxDFCodingStandard\PhpCsFixer\Rules::get();
69
70
## Usage
71
72
+Add composer scripts to your `composer.json`:
73
+
74
+```json
75
+"scripts": {
76
+ "cs:check": "phpcs -p -s --colors --report-full --report-summary",
77
+ "cs:fix": "phpcbf -p --colors",
78
+ "cs-fixer:check": "php-cs-fixer fix --dry-run --diff",
79
+ "cs-fixer:fix": "php-cs-fixer fix"
80
+}
81
+```
82
83
+Then run:
84
85
```shell
-composer cs:check # check only
-composer cs:fix # auto-fix
86
+composer cs:check # PHP_CodeSniffer: check only
87
+composer cs:fix # PHP_CodeSniffer: auto-fix
88
+composer cs-fixer:check # PHP-CS-Fixer: check only
89
+composer cs-fixer:fix # PHP-CS-Fixer: auto-fix
90
```
0 commit comments