Conditions | 2 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
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 |