| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | 2 | private function checkRequired(array $options, array $keys) |
|
|
1 ignored issue
–
show
|
|||
| 22 | { |
||
| 23 | 2 | $missing = array_diff_key(array_flip($keys), $options); |
|
| 24 | |||
| 25 | 2 | if (!empty($missing)) { |
|
| 26 | 1 | throw CommandException::missingOptions($missing); |
|
| 27 | } |
||
| 28 | 1 | } |
|
| 29 | } |
||
| 30 |