Skip to content

Commit 0d8be44

Browse files
committed
Add phpcs to composer dev dependencies
1 parent 903fedf commit 0d8be44

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

composer.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@
2424
"ext-json": "*"
2525
},
2626
"require-dev": {
27+
"dealerdirect/phpcodesniffer-composer-installer": "^1.0",
2728
"phpstan/phpstan": "^1.10",
28-
"phpunit/phpunit": "^9.5 || ^10.0"
29+
"phpunit/phpunit": "^9.5 || ^10.0",
30+
"squizlabs/php_codesniffer": "^3.7"
2931
},
3032
"minimum-stability": "dev",
3133
"prefer-stable": true,
@@ -53,8 +55,11 @@
5355
"analyze": "phpstan analyze",
5456
"check": [
5557
"@test",
56-
"@analyze"
58+
"@analyze",
59+
"@cs"
5760
],
61+
"cs": "phpcs",
62+
"cs-fix": "phpcbf",
5863
"test": "phpunit"
5964
}
6065
}

0 commit comments

Comments
 (0)