| Conditions | 3 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 30 | public function validateRawData(array $rawData) |
||
| 31 | { |
||
| 32 | if (!isset($rawData['info'])) { |
||
| 33 | $rawData['info'] = []; |
||
| 34 | } |
||
| 35 | if (count(array_diff( |
||
| 36 | ['name', 'data_wrapper', 'info', 'hash', 'data'], |
||
| 37 | array_keys($rawData) |
||
| 38 | ))) { |
||
| 39 | throw new \InvalidArgumentException( |
||
| 40 | 'Invalid data to hydrate context: ' . json_encode($rawData) |
||
| 41 | ); |
||
| 42 | } |
||
| 43 | } |
||
| 44 | } |
||
| 45 |