| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 23 | JSON_ERROR_UTF8 => 'Malformed UTF-8 characters, possibly incorrectly encoded', |
||
| 24 | ); |
||
| 25 | |||
| 26 | public function doValidation(Response $response) |
||
| 27 | { |
||
| 28 | $result = json_decode($response->getBody()); |
||
| 29 | if ($result === null) { |
||
| 30 | throw new ValidationFailedException("The given JSON data can not be validated (last error: '" . $this->json_errors[json_last_error()] . "')."); |
||
| 31 | } |
||
| 32 | } |
||
| 33 | } |
||
| 34 |