Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
31 | 1 | return $this->parseHeaders($this->response->getHeaders(false)); |
|
32 | } |
||
33 | |||
34 | public function getBody(): string |
||
35 | { |
||
36 | return $this->toString(); |
||
37 | } |
||
38 | |||
39 | 11 | public function parseJson(): array |
|
40 | { |
||
41 | 11 | $response = $this->toString(); |
|
42 | 11 | $data = json_decode($response, true); |
|
43 | |||
44 | 11 | if (! $data) { |
|
59 |