Skip to content

Commit

Permalink
Add PHP CS-fixer and fix resulting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
omnicolor committed Jun 9, 2023
1 parent b9d0bba commit a98bbb9
Show file tree
Hide file tree
Showing 26 changed files with 1,369 additions and 320 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.phpunit.cache/
.php-cs-fixer.cache
vendor/
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"react/socket": "^1.12.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.17",
"php-parallel-lint/php-parallel-lint": "^1.3",
"phpstan/phpstan": "^1.9",
"phpstan/phpstan-phpunit": "^1.3.3",
Expand All @@ -36,12 +37,14 @@
"scripts": {
"all": [
"@lint",
"@php-cs-fixer",
"@phpstan",
"@psalm",
"@coverage"
],
"coverage": "phpunit --coverage-html=vendor/coverage",
"lint": "parallel-lint --colors src tests",
"php-cs-fixer": "php-cs-fixer fix --dry-run --config=php_cs.php -v --diff",
"phpstan": "phpstan analyze",
"psalm": "psalm",
"test": "phpunit"
Expand Down
Loading

0 comments on commit a98bbb9

Please sign in to comment.