Skip to content

Commit de28c14

Browse files
committed
Added phpcs
1 parent a31897d commit de28c14

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
],
2222
"require": {
2323
"php": "^8.0",
24-
"laravel-doctrine/orm": "^1.6"
24+
"laravel-doctrine/orm": "^1.6",
25+
"doctrine/coding-standard": "^9.0"
2526
},
2627
"require-dev": {
2728
"phpunit/phpunit": "^9.5",

phpcs.xml.dist

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0"?>
2+
<ruleset>
3+
<arg name="basepath" value="."/>
4+
<arg name="extensions" value="php"/>
5+
<arg name="parallel" value="80"/>
6+
<arg name="cache" value=".phpcs-cache"/>
7+
<arg name="colors"/>
8+
9+
<!-- Ignore warnings, show progress of the run and show sniff names -->
10+
<arg value="nps"/>
11+
12+
<!-- Directories to be checked -->
13+
<file>src</file>
14+
15+
<exclude-pattern>src/Entity/*</exclude-pattern>
16+
17+
<!-- Include full Doctrine Coding Standard -->
18+
<rule ref="Doctrine"/>
19+
</ruleset>

0 commit comments

Comments
 (0)