Conditions | 4 |
Paths | 1 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
26 | public function filter($target, array $parameters, array $operators, ExecutionContext $context) |
||
27 | { |
||
28 | return IteratorTools::fromGenerator(function () use ($target, $parameters, $operators) { |
||
29 | foreach ($target as $row) { |
||
30 | $targetRow = is_array($row) ? $row : new ObjectContext($row); |
||
31 | |||
32 | if ($this->execute($targetRow, $operators, $parameters)) { |
||
33 | yield $row; |
||
34 | } |
||
35 | } |
||
36 | }); |
||
37 | } |
||
38 | } |
||
39 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.