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