Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
26 | 6 | public function match(object|array $item, FilterInterface $filter, array $iterableFilterHandlers): bool |
|
27 | { |
||
28 | /** @var Like $filter */ |
||
29 | |||
30 | 6 | $itemValue = ArrayHelper::getValue($item, $filter->field); |
|
31 | 6 | $argumentValue = $filter->value; |
|
32 | |||
33 | 6 | return is_string($itemValue) && stripos($itemValue, $argumentValue) !== false; |
|
34 | } |
||
36 |