Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
18 | public function __construct(int $nRequired, array $keys) |
||
19 | { |
||
20 | call_user_func_array(function(string ...$keys) {}, $keys); |
||
|
|||
21 | |||
22 | 2 | if (empty($keys)) { |
|
23 | 1 | throw new \InvalidArgumentException('At least 1 key must be supplied.'); |
|
24 | } |
||
25 | |||
26 | 1 | $this->nRequired = $nRequired; |
|
27 | 1 | $this->keys = $keys; |
|
28 | 1 | } |
|
40 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.