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