Skip to content

Commit be0547b

Browse files
committed
Apply Doctrine Coding Standard and fix
Fixes all current files and applies the standard.
1 parent 43d6da4 commit be0547b

16 files changed

+471
-103
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ composer.phar
33
/vendor/
44
.env
55
.phpunit.result.cache
6+
.phpcs-cache

composer.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@
1818
"mockery/mockery": "^1",
1919
"phpunit/phpunit": "^9",
2020
"vlucas/phpdotenv": "^5",
21-
"deployer/deployer": "^7"
21+
"deployer/deployer": "^7",
22+
"doctrine/coding-standard": "^10.0"
23+
},
24+
"config": {
25+
"allow-plugins": {
26+
"dealerdirect/phpcodesniffer-composer-installer": true
27+
}
28+
},
29+
"scripts": {
30+
"phpcs": "phpcs"
2231
}
2332
}

composer.lock

Lines changed: 295 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpcs.xml.dist

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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+
<file>tests</file>
15+
16+
<!-- Include full Doctrine Coding Standard -->
17+
<rule ref="Doctrine"/>
18+
</ruleset>

0 commit comments

Comments
 (0)