Skip to content

Commit

Permalink
Fix some code quality issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
rvdsteege committed Aug 12, 2024
1 parent 70cf0b6 commit bad3244
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 2,377 deletions.
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,12 @@
"bamarni/composer-bin-plugin": "^1.4",
"php-coveralls/php-coveralls": "^2.4",
"phpmd/phpmd": "^2.9",
"phpstan/phpstan": "^1.11",
"pronamic/pronamic-cli": "^1.1",
"pronamic/wp-coding-standards": "^2.2",
"roots/wordpress": "^6.0",
"szepeviktor/phpstan-wordpress": "^1.3",
"vimeo/psalm": "^5.25",
"yoast/phpunit-polyfills": "^1.0"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion phpstan.neon.dist
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
includes:
- vendor-bin/phpstan/vendor/szepeviktor/phpstan-wordpress/extension.neon
- vendor/szepeviktor/phpstan-wordpress/extension.neon
parameters:
customRulesetUsed: false
level: max
Expand Down
2 changes: 1 addition & 1 deletion src/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function json() {
\esc_html( (string) \strlen( $body ) ),
\esc_html( \json_last_error_msg() )
),
\esc_html( $json_error )
(int) $json_error
);
}

Expand Down
6 changes: 0 additions & 6 deletions vendor-bin/phpstan/composer.json

This file was deleted.

264 changes: 0 additions & 264 deletions vendor-bin/phpstan/composer.lock

This file was deleted.

5 changes: 0 additions & 5 deletions vendor-bin/psalm/composer.json

This file was deleted.

Loading

0 comments on commit bad3244

Please sign in to comment.