Skip to content
This repository was archived by the owner on May 25, 2020. It is now read-only.

Commit 2d1660e

Browse files
committed
Added phpcs.xml and a phpcs build target
1 parent ccdbadb commit 2d1660e

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ install:
33
test:
44
vendor/bin/phpunit --color
55
vendor/bin/phpstan analyze -l7 src tests
6+
vendor/bin/phpcs
67
coverage:
78
$(eval TMPDIR=$(shell mktemp -d))
89
vendor/bin/phpunit --coverage-html=$(TMPDIR)

phpcs.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0"?>
2+
<ruleset>
3+
<arg name="basepath" value="."/>
4+
5+
<file>src</file>
6+
<file>include</file>
7+
<file>tests</file>
8+
<exclude-pattern>tests/fixtures/*</exclude-pattern>
9+
10+
<rule ref="PSR2"/>
11+
</ruleset>

0 commit comments

Comments
 (0)