| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 38 | private function ensureRequired(array $values) |
||
| 39 | { |
||
| 40 | 2 | $defined = array_filter($values, static function ($value) { |
|
| 41 | 1 | return $value !== null; |
|
| 42 | 2 | }); |
|
| 43 | |||
| 44 | 2 | $missing = array_diff($this->required(), array_keys($defined)); |
|
|
|
|||
| 45 | |||
| 46 | 2 | if ($missing) { |
|
| 47 | 1 | throw CommandException::missingOptions($missing); |
|
| 48 | } |
||
| 49 | 1 | } |
|
| 50 | |||
| 67 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.