Skip to content

Commit 9fb93b1

Browse files
committed
Enable PHP Code Sniffer
1 parent 6f4be74 commit 9fb93b1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

composer.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
"require-dev": {
2525
"phpunit/phpunit": "^6.0",
2626
"phpdocumentor/phpdocumentor" : "^2.9",
27-
"jakub-onderka/php-parallel-lint": "^0.9.2"
27+
"jakub-onderka/php-parallel-lint": "^0.9.2",
28+
"squizlabs/php_codesniffer": "3.*"
2829
},
2930
"autoload": {
3031
"psr-4": {
@@ -44,7 +45,8 @@
4445
"scripts": {
4546
"test": [
4647
"parallel-lint . --exclude vendor",
47-
"phpunit"
48+
"phpunit",
49+
"phpcs -p --standard=PSR2 --extensions=php --ignore=/vendor/ ."
4850
]
4951
}
5052
}

0 commit comments

Comments
 (0)