Skip to content

Commit 377175b

Browse files
committed
Add PHPCS to project for PSR2 compliance
1 parent 2ec1aeb commit 377175b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
"require-dev": {
2525
"phpunit/phpunit": "^5.3",
2626
"php-http/mock-client": "^0.3.0",
27-
"estahn/phpunit-json-assertions": "@stable"
27+
"estahn/phpunit-json-assertions": "@stable",
28+
"squizlabs/php_codesniffer": "^3.1"
2829
},
2930
"autoload": {
3031
"psr-4": {

phpcs.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0"?>
2+
<ruleset name="PSR2">
3+
<rule ref="PSR2"/>
4+
<file>./src</file>
5+
</ruleset>

0 commit comments

Comments
 (0)