Skip to content

Commit

Permalink
Add separate phpcs.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
gocom committed Nov 24, 2018
1 parent b60ff52 commit 4c76c81
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@
},
"scripts": {
"test": "./vendor/bin/phpunit",
"cs": "./vendor/bin/phpcs --standard=PSR1,PSR2 src tests"
"cs": "./vendor/bin/phpcs"
}
}
7 changes: 7 additions & 0 deletions phpcs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="PHP_CodeSniffer">
<file>src</file>
<file>tests</file>
<rule ref="PSR1"/>
<rule ref="PSR2"/>
</ruleset>

0 comments on commit 4c76c81

Please sign in to comment.