@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | $criteria = [ |
| 94 | 94 | 'field' => $fieldName, |
| 95 | 95 | 'alias' => 'test', |
| 96 | - 'where' => WhereType::AND, |
|
| 96 | + 'where' => WhereType:: AND , |
|
| 97 | 97 | 'value' => 123, |
| 98 | 98 | 'format' => null, |
| 99 | 99 | ]; |
@@ -113,17 +113,17 @@ discard block |
||
| 113 | 113 | /** @var Expr\Comparison|MockObject $eq */ |
| 114 | 114 | $eq = $this->createMock(Expr\Comparison::class); |
| 115 | 115 | |
| 116 | - $isEqualString = $criteria['alias'] . '.' . $fieldName . '=' . ':param_name'; |
|
| 116 | + $isEqualString = $criteria['alias'].'.'.$fieldName.'='.':param_name'; |
|
| 117 | 117 | $expr->expects($this->once()) |
| 118 | 118 | ->method('eq') |
| 119 | - ->with($criteria['alias'] . '.' . $fieldName, $this->stringStartsWith(':')) |
|
| 119 | + ->with($criteria['alias'].'.'.$fieldName, $this->stringStartsWith(':')) |
|
| 120 | 120 | ->willReturn($eq); |
| 121 | 121 | |
| 122 | 122 | $eq->expects($this->once()) |
| 123 | 123 | ->method('__toString') |
| 124 | 124 | ->willReturn($isEqualString); |
| 125 | 125 | |
| 126 | - $methodName = (!isset($criteria['where']) || WhereType::AND === $criteria['where']) |
|
| 126 | + $methodName = (!isset($criteria['where']) || WhereType:: AND === $criteria['where']) |
|
| 127 | 127 | ? 'andWhere' |
| 128 | 128 | : 'orWhere'; |
| 129 | 129 | |
@@ -32,12 +32,12 @@ |
||
| 32 | 32 | $toParamName = $this->createParamName($queryAlias); |
| 33 | 33 | |
| 34 | 34 | $expression = $queryBuilder->expr()->between( |
| 35 | - $queryAlias . '.' . $fieldName, |
|
| 36 | - ':' . $fromParamName, |
|
| 37 | - ':' . $toParamName |
|
| 35 | + $queryAlias.'.'.$fieldName, |
|
| 36 | + ':'.$fromParamName, |
|
| 37 | + ':'.$toParamName |
|
| 38 | 38 | ); |
| 39 | 39 | |
| 40 | - if (!isset($criteria['where']) || WhereType::AND === $criteria['where']) { |
|
| 40 | + if (!isset($criteria['where']) || WhereType:: AND === $criteria['where']) { |
|
| 41 | 41 | $queryBuilder->andWhere($expression); |
| 42 | 42 | } else { |
| 43 | 43 | $queryBuilder->orWhere($expression); |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | $paramName = $this->createParamName($queryAlias); |
| 49 | 49 | |
| 50 | 50 | $expression = $this->createExpression($queryBuilder->expr(), $fieldName, $paramName, $queryAlias); |
| 51 | - if (!isset($criteria['where']) || WhereType::AND === $criteria['where']) { |
|
| 51 | + if (!isset($criteria['where']) || WhereType:: AND === $criteria['where']) { |
|
| 52 | 52 | $queryBuilder->andWhere($expression); |
| 53 | 53 | } else { |
| 54 | 54 | $queryBuilder->orWhere($expression); |