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