| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | public function getResponseErrors(): array |
||
| 17 | { |
||
| 18 | $responseBody = $this->response->getBody(); |
||
| 19 | $responseBody->rewind(); |
||
| 20 | $decodedBody = json_decode($responseBody->getContents(), true); |
||
| 21 | $responseBody->rewind(); |
||
| 22 | return isset($decodedBody['errors']) ? $decodedBody['errors'] : []; |
||
| 23 | } |
||
| 25 |