Skip to content

Commit

Permalink
Install PHP code sniffer
Browse files Browse the repository at this point in the history
PHP code sniffer is a linter for PHP. We will use this to do mass fixes to code style / code formatting.

- Install PHP code sniffer
- Upgrade phpunit
- Switch phpunit to a dev dependency
  • Loading branch information
RedDragonWebDesign committed Jan 24, 2024
1 parent 2491c3a commit a983794
Show file tree
Hide file tree
Showing 3 changed files with 187 additions and 459 deletions.
9 changes: 9 additions & 0 deletions .phpcs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<ruleset>
<arg name="tab-width" value="4"/>
<exclude-pattern>/.github/</exclude-pattern>
<exclude-pattern>/.vscode/</exclude-pattern>
<exclude-pattern>/gitignore/</exclude-pattern>
<exclude-pattern>/screenshots/</exclude-pattern>
<exclude-pattern>/vendor/</exclude-pattern>
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace"/>
</ruleset>
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"require": {
"phpunit/phpunit": "^9.5"
"require-dev": {
"phpunit/phpunit": "^9.5",
"squizlabs/php_codesniffer": "*"
}
}
Loading

0 comments on commit a983794

Please sign in to comment.