Skip to content

Commit 6069b69

Browse files
committed
Added phpcs config
1 parent 831a977 commit 6069b69

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

.gitignore

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/.idea/*
2-
/vendor/*
3-
/phpunit.xml
1+
vendor/
2+
phpcs.xml
3+
phpunit.xml
44
composer.lock

phpcs.xml.dist

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0"?>
2+
<ruleset name="Coding standard">
3+
<description>Coding standard</description>
4+
5+
<!-- display progress -->
6+
<arg value="p"/>
7+
<!-- use colors in output -->
8+
<arg name="colors"/>
9+
10+
<!-- inherit rules from: -->
11+
<rule ref="PSR12">
12+
<exclude name="PSR12.Properties.ConstantVisibility.NotFound"/>
13+
</rule>
14+
15+
<!-- Paths to check -->
16+
<file>src</file>
17+
<file>tests</file>
18+
</ruleset>

0 commit comments

Comments
 (0)