Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types = 1); |
||
51 | public function findByCriteria(string $type, array $criteria) |
||
52 | { |
||
53 | $entities = []; |
||
54 | |||
55 | foreach ($criteria as $i => $criterion) { |
||
56 | $entities[] = (object)[ |
||
57 | 'id' => $i + 3, |
||
58 | 'type' => $type, |
||
59 | 'foo' => 'bar' |
||
60 | ]; |
||
61 | } |
||
62 | |||
63 | return $entities; |
||
64 | } |
||
65 | |||
122 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.