| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function doValidation(ResponseInterface $response) |
||
| 32 | { |
||
| 33 | $result = json_decode((string)$response->getBody()); |
||
| 34 | if ($result === null) { |
||
| 35 | throw new ValidationFailedException("The given JSON data can not be validated (last error: '" . $this->json_errors[json_last_error()] . "')."); |
||
| 36 | } |
||
| 37 | } |
||
| 38 | } |
||
| 39 |