@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | if (!$result instanceof EntityManager) { |
| 44 | - throw new InvalidArgumentException(self::class. ': expected EntityManager instance. Wrong configuration?'); |
|
| 44 | + throw new InvalidArgumentException(self::class.': expected EntityManager instance. Wrong configuration?'); |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | return $result; |
@@ -66,18 +66,18 @@ discard block |
||
| 66 | 66 | $options = $this->getOptions($configuration); |
| 67 | 67 | |
| 68 | 68 | if (!isset($options['entity_class'])) { |
| 69 | - throw new InvalidArgumentException(self::class. ': entity_class not provided. Wrong configuration?'); |
|
| 69 | + throw new InvalidArgumentException(self::class.': entity_class not provided. Wrong configuration?'); |
|
| 70 | 70 | } |
| 71 | 71 | |
| 72 | 72 | if (!isset($options['repository_method'])) { |
| 73 | - throw new InvalidArgumentException(self::class. ': repository_method not provided. Wrong configuration?'); |
|
| 73 | + throw new InvalidArgumentException(self::class.': repository_method not provided. Wrong configuration?'); |
|
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | $configClassName = $configuration->getClass(); |
| 77 | 77 | $config = new $configClassName(); |
| 78 | 78 | |
| 79 | 79 | if (!$config instanceof ConfigInterface) { |
| 80 | - throw new InvalidArgumentException(self::class. ': config is not QueryFilterConfig descendant. Wrong configuration?'); |
|
| 80 | + throw new InvalidArgumentException(self::class.': config is not QueryFilterConfig descendant. Wrong configuration?'); |
|
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | $config->setRequest(new Request($request)); |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | $repo = $manager->getRepository($options['entity_class']); |
| 87 | 87 | |
| 88 | 88 | if (!is_callable(array($repo, $options['repository_method']))) { |
| 89 | - throw new InvalidArgumentException(self::class. ': repository_method is not callable. Wrong configuration?'); |
|
| 89 | + throw new InvalidArgumentException(self::class.': repository_method is not callable. Wrong configuration?'); |
|
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | $config->setRepositoryCallback(array($repo, $options['repository_method'])); |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | { |
| 17 | 17 | public function getExpr(QueryBuilder $qb, int $index, Filter $filter) |
| 18 | 18 | { |
| 19 | - $expr = $qb->expr()->lte($filter->getField(), '?' . $index); |
|
| 19 | + $expr = $qb->expr()->lte($filter->getField(), '?'.$index); |
|
| 20 | 20 | $qb->setParameter($index, $filter->getX() ?? ''); |
| 21 | 21 | |
| 22 | 22 | return $expr; |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | { |
| 19 | 19 | $values = explode(',', $filter->getX() ?? ''); |
| 20 | 20 | $values = array_map('trim', $values); |
| 21 | - $expr = $qb->expr()->notIn($filter->getField(), '?' . $index); |
|
| 21 | + $expr = $qb->expr()->notIn($filter->getField(), '?'.$index); |
|
| 22 | 22 | $qb->setParameter($index, $values); |
| 23 | 23 | |
| 24 | 24 | return $expr; |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | { |
| 17 | 17 | public function getExpr(QueryBuilder $qb, int $index, Filter $filter) |
| 18 | 18 | { |
| 19 | - $expr = $qb->expr()->gte($filter->getField(), '?' . $index); |
|
| 19 | + $expr = $qb->expr()->gte($filter->getField(), '?'.$index); |
|
| 20 | 20 | $qb->setParameter($index, $filter->getX() ?? ''); |
| 21 | 21 | |
| 22 | 22 | return $expr; |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | { |
| 17 | 17 | public function getExpr(QueryBuilder $qb, int $index, Filter $filter) |
| 18 | 18 | { |
| 19 | - $expr = $qb->expr()->isMemberOf('?' . $index, $filter->getField()); |
|
| 19 | + $expr = $qb->expr()->isMemberOf('?'.$index, $filter->getField()); |
|
| 20 | 20 | $values = explode(',', $filter->getX() ?? ''); |
| 21 | 21 | $values = array_map('trim', $values); |
| 22 | 22 | $qb->setParameter($index, $values); |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | { |
| 17 | 17 | public function getExpr(QueryBuilder $qb, int $index, Filter $filter) |
| 18 | 18 | { |
| 19 | - $expr = $qb->expr()->neq($filter->getField(), '?' . $index); |
|
| 19 | + $expr = $qb->expr()->neq($filter->getField(), '?'.$index); |
|
| 20 | 20 | $qb->setParameter($index, $filter->getX() ?? ''); |
| 21 | 21 | |
| 22 | 22 | return $expr; |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | { |
| 17 | 17 | public function getExpr(QueryBuilder $qb, int $index, Filter $filter) |
| 18 | 18 | { |
| 19 | - $expr = $qb->expr()->gt($filter->getField(), '?' . $index); |
|
| 19 | + $expr = $qb->expr()->gt($filter->getField(), '?'.$index); |
|
| 20 | 20 | $qb->setParameter($index, $filter->getX() ?? ''); |
| 21 | 21 | |
| 22 | 22 | return $expr; |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | { |
| 17 | 17 | public function getExpr(QueryBuilder $qb, int $index, Filter $filter) |
| 18 | 18 | { |
| 19 | - $expr = $filter->getField() . ' NOT BETWEEN ' . ':x'.$index . ' AND ' . ':y'.$index; |
|
| 19 | + $expr = $filter->getField().' NOT BETWEEN '.':x'.$index.' AND '.':y'.$index; |
|
| 20 | 20 | $qb->setParameter('x'.$index, $filter->getX() ?? ''); |
| 21 | 21 | $qb->setParameter('y'.$index, $filter->getY() ?? ''); |
| 22 | 22 | |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | { |
| 17 | 17 | public function getExpr(QueryBuilder $qb, int $index, Filter $filter) |
| 18 | 18 | { |
| 19 | - $expr = $qb->expr()->lt($filter->getField(), '?' . $index); |
|
| 19 | + $expr = $qb->expr()->lt($filter->getField(), '?'.$index); |
|
| 20 | 20 | $qb->setParameter($index, $filter->getX() ?? ''); |
| 21 | 21 | |
| 22 | 22 | return $expr; |