Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php declare(strict_types = 1); |
||
16 | public function getExpr(QueryBuilder $qb, string $field, int $index, array $val) |
||
17 | { |
||
18 | $expr = $qb->expr()->not($qb->expr()->between($field, ':x'.$index, ':y'.$index)); |
||
19 | $qb->setParameter('x'.$index, $val['x'] ?? ''); |
||
20 | $qb->setParameter('y'.$index, $val['y'] ?? ''); |
||
21 | |||
22 | return $expr; |
||
23 | } |
||
29 | } |