Skip to content

Commit 1845406

Browse files
committed
Add a phpcs file and expand the gitiginore
1 parent 22af426 commit 1845406

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

Diff for: .gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
.idea
22
vendor
3-
3+
*.patch
4+
*.swp
5+
/test.php

Diff for: phpcs.xml.dist

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0"?>
2+
<ruleset name="PHP_CodeSniffer">
3+
<file>./src</file>
4+
5+
<exclude-pattern type="relative">^/tests/*</exclude-pattern>
6+
<exclude-pattern type="relative">^/vendor/*</exclude-pattern>
7+
8+
<arg name="colors"/>
9+
<arg name="report" value="full"/>
10+
11+
<rule ref="PSR2"/>
12+
</ruleset>

0 commit comments

Comments
 (0)