Skip to content

Commit

Permalink
Fix codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
sprain committed Oct 16, 2024
1 parent a3dbdf7 commit bd25325
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/ApiClient/Http/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ public function getStatusCode(): int

public function getContent(): array
{
if (!$this->content) {
return [];
}
if (!$this->content) {
return [];
}

return json_decode($this->content, true, 512, JSON_THROW_ON_ERROR);
}

Expand Down Expand Up @@ -82,7 +82,7 @@ private function getLastElementOfLocationHeader(): ?string

private function getLocationHeaderContent(): ?string
{
foreach($this->getHeaders() as $key => $content) {
foreach ($this->getHeaders() as $key => $content) {
if (strtolower($key) === 'location') {
return trim($content[0]);
}
Expand Down

0 comments on commit bd25325

Please sign in to comment.