| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | public function search(int $page = 1, string $query = null, int $size = 20) |
||
| 11 | { |
||
| 12 | $skip = ($page * $size) - $size; |
||
| 13 | $skip = $skip < 0 ? 0 : $skip; |
||
| 14 | |||
| 15 | $qb = $this->createQueryBuilder() |
||
| 16 | ->limit($size) |
||
| 17 | ->skip($skip); |
||
| 18 | |||
| 19 | $this->addSearch($qb, $query); |
||
| 20 | |||
| 21 | return $qb->getQuery()->execute(); |
||
| 22 | } |
||
| 39 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.