Skip to content

Commit

Permalink
Apply Doctrine Coding Standard and fix
Browse files Browse the repository at this point in the history
Fixes all current files and applies the standard.
  • Loading branch information
rdohms committed Oct 10, 2022
1 parent 43d6da4 commit be0547b
Show file tree
Hide file tree
Showing 16 changed files with 471 additions and 103 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ composer.phar
/vendor/
.env
.phpunit.result.cache
.phpcs-cache
11 changes: 10 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@
"mockery/mockery": "^1",
"phpunit/phpunit": "^9",
"vlucas/phpdotenv": "^5",
"deployer/deployer": "^7"
"deployer/deployer": "^7",
"doctrine/coding-standard": "^10.0"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"scripts": {
"phpcs": "phpcs"
}
}
297 changes: 295 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions phpcs.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0"?>
<ruleset>
<arg name="basepath" value="."/>
<arg name="extensions" value="php"/>
<arg name="parallel" value="80"/>
<arg name="cache" value=".phpcs-cache"/>
<arg name="colors"/>

<!-- Ignore warnings, show progress of the run and show sniff names -->
<arg value="nps"/>

<!-- Directories to be checked -->
<file>src</file>
<file>tests</file>

<!-- Include full Doctrine Coding Standard -->
<rule ref="Doctrine"/>
</ruleset>
Loading

0 comments on commit be0547b

Please sign in to comment.