Skip to content

Commit aa51a60

Browse files
GeoffreyDijkstraSjonHortensius
authored andcommitted
introduce a phpcs.xml
1 parent 8b28375 commit aa51a60

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,8 @@
4242
"require": {
4343
"php": ">=7.2",
4444
"ext-curl": "*"
45+
},
46+
"scripts": {
47+
"phpcs": "phpcs --standard=phpcs.xml"
4548
}
46-
}
49+
}

phpcs.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0"?>
2+
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="PHP_CodeSniffer" xsi:noNamespaceSchemaLocation="phpcs.xsd">
3+
<description>PSR12</description>
4+
<rule ref="PSR12"/>
5+
<file>.</file>
6+
<exclude-pattern>/vendor/*</exclude-pattern>
7+
<exclude-pattern>/example/*</exclude-pattern>
8+
<exclude-pattern>*.js</exclude-pattern>
9+
<exclude-pattern>*.css</exclude-pattern>
10+
</ruleset>

0 commit comments

Comments
 (0)