Skip to content

Commit 7c91769

Browse files
committed
Added codesniffer with PSR2 rules
1 parent d9f189c commit 7c91769

File tree

3 files changed

+378
-514
lines changed

3 files changed

+378
-514
lines changed

composer.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
}
3737
},
3838
"require-dev": {
39-
"phpunit/phpunit": "^7.3"
39+
"phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.2",
40+
"squizlabs/php_codesniffer": "^3.3"
4041
},
4142
"archive": {
4243
"exclude": [
@@ -46,5 +47,16 @@
4647
},
4748
"config": {
4849
"sort-packages": true
50+
},
51+
"scripts": {
52+
"check": [
53+
"@cs-check",
54+
"@test"
55+
],
56+
"cs-check": "phpcs",
57+
"cs-fix": "phpcbf",
58+
"test": "phpunit --colors=always",
59+
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml",
60+
"upload-coverage": "coveralls -v"
4961
}
5062
}

0 commit comments

Comments
 (0)