Skip to content

Commit 31f8ab5

Browse files
committed
Added cs scripts to composer.json
1 parent a5b01e2 commit 31f8ab5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

composer.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,12 @@
2626
"squizlabs/php_codesniffer": "^3.7.1",
2727
"phpunit/phpunit": "^9.5.21",
2828
"php-coveralls/php-coveralls": "^2.5.2"
29+
},
30+
"scripts": {
31+
"test-cs": [
32+
"php-cs-fixer --dry-run -v --config=cs-fixer.php.dist --path-mode=intersection fix src tests",
33+
"phpcs --extensions=php --standard=phpcs.xml.dist src",
34+
"phpcs --extensions=php --standard=phpcs.xml.dist --ignore=*/CodeSamples/* tests"
35+
]
2936
}
3037
}

0 commit comments

Comments
 (0)