Conditions | 3 |
Paths | 3 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
20 | 3 | public function validateResponseData($data) |
|
21 | { |
||
22 | 3 | if (!isset($data->status)) { |
|
23 | 1 | throw EventValidationResponseCorruptDataException::eventApiResponseCorrupt($data); |
|
24 | 2 | } elseif (isset($data->errors)) { |
|
25 | 1 | throw EventValidationResponseErrorException::eventApiResponseError($data->errors[0]); |
|
26 | } |
||
27 | 1 | } |
|
28 | } |
||
29 |