Skip to content

Commit

Permalink
PHPCS fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Sæther committed Sep 9, 2021
1 parent 376a082 commit 47aff3d
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/Servebolt/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,7 @@ private function parseMessages() : void
if (!property_exists($this, 'messages')) {
return;
}
if (
isset($this->responseBody->messages)
&& is_array($this->responseBody->messages)
) {
if (isset($this->responseBody->messages) && is_array($this->responseBody->messages)) {
$this->setMessages($this->responseBody->messages);
}
}
Expand All @@ -223,10 +220,7 @@ private function parseErrors() : void
if (!property_exists($this, 'errors')) {
return;
}
if (
isset($this->responseBody->errors)
&& is_array($this->responseBody->errors)
) {
if (isset($this->responseBody->errors) && is_array($this->responseBody->errors)) {
$this->setErrors($this->responseBody->errors);
}
}
Expand Down

0 comments on commit 47aff3d

Please sign in to comment.