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 ca97c20 commit 70cf0b6
Show file tree
Hide file tree
Showing 6 changed files with 643 additions and 697 deletions.
8 changes: 4 additions & 4 deletions src/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function json() {
throw new \Exception(
\sprintf(
'Response is empty, HTTP response: "%s %s".',
\esc_html( \wp_remote_retrieve_response_code( $this->data ) ),
\esc_html( (string) \wp_remote_retrieve_response_code( $this->data ) ),
\esc_html( \wp_remote_retrieve_response_message( $this->data ) )
)
);
Expand All @@ -103,12 +103,12 @@ public function json() {
throw new \Exception(
\sprintf(
'Could not JSON decode response, HTTP response: "%s %s", HTTP body length: "%d", JSON error: "%s".',
\esc_html( \wp_remote_retrieve_response_code( $this->data ) ),
\esc_html( (string) \wp_remote_retrieve_response_code( $this->data ) ),
\esc_html( \wp_remote_retrieve_response_message( $this->data ) ),
\esc_html( \strlen( $body ) ),
\esc_html( (string) \strlen( $body ) ),
\esc_html( \json_last_error_msg() )
),
(int) $json_error
\esc_html( $json_error )
);
}

Expand Down
26 changes: 13 additions & 13 deletions vendor-bin/phpdocumentor/composer.lock

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

99 changes: 45 additions & 54 deletions vendor-bin/phpstan/composer.lock

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

2 changes: 1 addition & 1 deletion vendor-bin/psalm/composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"require-dev": {
"vimeo/psalm": "^5.4"
"vimeo/psalm": "^5.25"
}
}
Loading

0 comments on commit 70cf0b6

Please sign in to comment.