Skip to content

Commit

Permalink
Type all endpoints, code cleanup (#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
danepowell authored Aug 19, 2022
1 parent 4f6d59d commit 9c08d6e
Show file tree
Hide file tree
Showing 41 changed files with 1,053 additions and 662 deletions.
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 4
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
vendor
tests/logs
.idea
.phpunit.result.cache
build
8 changes: 8 additions & 0 deletions .phplint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
path: ./
jobs: 10
cache: build/phplint.cache
extensions:
- php
exclude:
- vendor
warning: false
12 changes: 5 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@
"require-dev": {
"php-coveralls/php-coveralls": "^2.0.0",
"phpunit/phpunit": "^9",
"phpstan/phpstan": "^0.12",
"phpstan/phpstan-phpunit": "^0.12",
"phpstan/phpstan": "^1.0",
"phpstan/phpstan-phpunit": "^1.0",
"squizlabs/php_codesniffer": "3.*",
"eloquent/phony-phpunit": "^7",
"ext-json": "*"
"ext-json": "*",
"overtrue/phplint": "^3.2"
},
"autoload": {
"psr-4": {
Expand All @@ -47,10 +48,7 @@
}
},
"scripts": {
"lint": [
"find src -name '*.php' -print0 | xargs -0 -n1 php -l",
"find tests -name '*.php' -print0 | xargs -0 -n1 php -l"
],
"lint": "phplint",
"cs": "phpcs --standard=PSR12 -n src tests --ignore=./tests/logs/*",
"cbf": "phpcbf --standard=PSR12 -n src tests --ignore=./tests/logs/*",
"unit": "php -dpcov.enabled=1 -dpcov.directory=. -dpcov.exclude='~vendor~' ./vendor/bin/phpunit --configuration=phpunit.xml --testdox",
Expand Down
Loading

0 comments on commit 9c08d6e

Please sign in to comment.