Conditions | 3 |
Paths | 3 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | 10 | public function match(array $item, array $arguments, array $filterProcessors): bool |
|
20 | { |
||
21 | 10 | if (count($arguments) !== 1) { |
|
22 | 1 | throw new InvalidArgumentException('$arguments should contain exactly one element.'); |
|
23 | } |
||
24 | |||
25 | 9 | [$field] = $arguments; |
|
26 | 9 | return array_key_exists($field, $item) && $item[$field] === null; |
|
27 | } |
||
29 |