Skip to content

Commit f9a6e0a

Browse files
committed
fix code style
1 parent 9621933 commit f9a6e0a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Response/TraceableResponse.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ public function getContent(bool $throw = true): string
8383
if (false === $this->content) {
8484
return $this->response->getContent($throw);
8585
}
86+
8687
return $this->content = $this->response->getContent(false);
8788
} finally {
8889
if ($this->event && $this->event->isStarted()) {
@@ -100,6 +101,7 @@ public function toArray(bool $throw = true): array
100101
if (false === $this->content) {
101102
return $this->response->toArray($throw);
102103
}
104+
103105
return $this->content = $this->response->toArray(false);
104106
} finally {
105107
if ($this->event && $this->event->isStarted()) {

Tests/Response/MockResponseTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function testToArrayError($content, $responseHeaders, $message)
3333
$response->toArray();
3434
}
3535

36-
public function testUrlHttpMethodMockResponse(): void
36+
public function testUrlHttpMethodMockResponse()
3737
{
3838
$responseMock = new MockResponse(json_encode(['foo' => 'bar']));
3939
$url = 'https://example.com/some-endpoint';

0 commit comments

Comments
 (0)