@@ -100,7 +100,7 @@ |
||
| 100 | 100 | ->method('__toString') |
| 101 | 101 | ->willReturn($expressionString); |
| 102 | 102 | |
| 103 | - $methodName = (!isset($criteria['where']) || WhereType::AND === $criteria['where']) |
|
| 103 | + $methodName = (!isset($criteria['where']) || WhereType:: AND === $criteria['where']) |
|
| 104 | 104 | ? 'andWhere' |
| 105 | 105 | : 'orWhere'; |
| 106 | 106 | |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | $isBetween |
| 146 | 146 | ); |
| 147 | 147 | |
| 148 | - if (empty($criteria['where']) || WhereType::AND === $criteria['where']) { |
|
| 148 | + if (empty($criteria['where']) || WhereType:: AND === $criteria['where']) { |
|
| 149 | 149 | $this->queryBuilder->expects($this->once()) |
| 150 | 150 | ->method('andWhere') |
| 151 | 151 | ->with($isBetween); |
@@ -192,7 +192,7 @@ discard block |
||
| 192 | 192 | [ |
| 193 | 193 | 'to' => '2021-01-01 00:00:00', |
| 194 | 194 | 'from' => '2021-02-01 00:00:00', |
| 195 | - 'where' => WhereType::AND, |
|
| 195 | + 'where' => WhereType:: AND , |
|
| 196 | 196 | ], |
| 197 | 197 | ], |
| 198 | 198 | |
@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | [ |
| 201 | 201 | 'to' => '2021-01-01 00:00:00', |
| 202 | 202 | 'from' => '2021-02-01 00:00:00', |
| 203 | - 'where' => WhereType::OR, |
|
| 203 | + 'where' => WhereType:: OR , |
|
| 204 | 204 | ], |
| 205 | 205 | ], |
| 206 | 206 | |
@@ -100,7 +100,7 @@ |
||
| 100 | 100 | ->method('__toString') |
| 101 | 101 | ->willReturn($expressionString); |
| 102 | 102 | |
| 103 | - $methodName = (!isset($criteria['where']) || WhereType::AND === $criteria['where']) |
|
| 103 | + $methodName = (!isset($criteria['where']) || WhereType:: AND === $criteria['where']) |
|
| 104 | 104 | ? 'andWhere' |
| 105 | 105 | : 'orWhere'; |
| 106 | 106 | |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | * |
| 47 | 47 | * @throws FilterException |
| 48 | 48 | */ |
| 49 | - public function testFilterWillApplyTheProvidedConditions(WhereType|string|null $whereType): void |
|
| 49 | + public function testFilterWillApplyTheProvidedConditions(WhereType | string | null $whereType): void |
|
| 50 | 50 | { |
| 51 | 51 | $criteria = [ |
| 52 | 52 | 'conditions' => [ |
@@ -143,8 +143,8 @@ discard block |
||
| 143 | 143 | { |
| 144 | 144 | return [ |
| 145 | 145 | [null], |
| 146 | - [WhereType::AND], |
|
| 147 | - [WhereType::AND->value], |
|
| 146 | + [WhereType:: AND ], |
|
| 147 | + [WhereType:: AND ->value], |
|
| 148 | 148 | ]; |
| 149 | 149 | } |
| 150 | 150 | } |
@@ -109,7 +109,7 @@ |
||
| 109 | 109 | */ |
| 110 | 110 | public function testSortWillApplySortCriteria( |
| 111 | 111 | string $field, |
| 112 | - OrderByDirection|string|null $direction, |
|
| 112 | + OrderByDirection | string | null $direction, |
|
| 113 | 113 | ?string $alias = null |
| 114 | 114 | ): void { |
| 115 | 115 | $sort = new Field(); |
@@ -351,7 +351,7 @@ discard block |
||
| 351 | 351 | * @dataProvider getOrderByWillProxyToInternalQueryBuilderData |
| 352 | 352 | */ |
| 353 | 353 | public function testOrderByWillProxyToInternalQueryBuilder( |
| 354 | - Expr\OrderBy|string $sort, |
|
| 354 | + Expr\OrderBy | string $sort, |
|
| 355 | 355 | ?OrderByDirection $direction = null |
| 356 | 356 | ): void { |
| 357 | 357 | $queryBuilder = new QueryBuilder($this->doctrineQueryBuilder); |
@@ -368,7 +368,7 @@ discard block |
||
| 368 | 368 | * @dataProvider getOrderByWillProxyToInternalQueryBuilderData |
| 369 | 369 | */ |
| 370 | 370 | public function testAddOrderByWillProxyToInternalQueryBuilder( |
| 371 | - Expr\OrderBy|string $sort, |
|
| 371 | + Expr\OrderBy | string $sort, |
|
| 372 | 372 | ?OrderByDirection $direction = null |
| 373 | 373 | ): void { |
| 374 | 374 | $queryBuilder = new QueryBuilder($this->doctrineQueryBuilder); |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | $compositeExpr = $this->createComposite($queryBuilder); |
| 43 | 43 | $compositeExpr->addMultiple($parts['where']->getParts()); |
| 44 | 44 | |
| 45 | - if ($this->getWhereType($criteria) === WhereType::AND) { |
|
| 45 | + if ($this->getWhereType($criteria) === WhereType:: AND ) { |
|
| 46 | 46 | $queryBuilder->andWhere($compositeExpr); |
| 47 | 47 | } else { |
| 48 | 48 | $queryBuilder->orWhere($compositeExpr); |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | |
| 38 | 38 | $expression = $this->createExpression($queryBuilder->expr(), $fieldName, $paramName, $queryAlias); |
| 39 | 39 | |
| 40 | - if ($this->getWhereType($criteria) === WhereType::AND) { |
|
| 40 | + if ($this->getWhereType($criteria) === WhereType:: AND ) { |
|
| 41 | 41 | $queryBuilder->andWhere($expression); |
| 42 | 42 | } else { |
| 43 | 43 | $queryBuilder->orWhere($expression); |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | ':' . $toParamName |
| 47 | 47 | ); |
| 48 | 48 | |
| 49 | - if ($this->getWhereType($criteria) === WhereType::AND) { |
|
| 49 | + if ($this->getWhereType($criteria) === WhereType:: AND ) { |
|
| 50 | 50 | $queryBuilder->andWhere($expression); |
| 51 | 51 | } else { |
| 52 | 52 | $queryBuilder->orWhere($expression); |