@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | $criteria = [ |
93 | 93 | 'field' => $fieldName, |
94 | 94 | 'alias' => 'test', |
95 | - 'where' => WhereType::AND, |
|
95 | + 'where' => WhereType:: AND , |
|
96 | 96 | 'value' => 123, |
97 | 97 | 'format' => null, |
98 | 98 | ]; |
@@ -112,17 +112,17 @@ discard block |
||
112 | 112 | /** @var Expr\Comparison|MockObject $neq */ |
113 | 113 | $neq = $this->createMock(Expr\Comparison::class); |
114 | 114 | |
115 | - $isNotEqualString = $criteria['alias'] . '.' . $fieldName . '!=' . ':param_name'; |
|
115 | + $isNotEqualString = $criteria['alias'].'.'.$fieldName.'!='.':param_name'; |
|
116 | 116 | $expr->expects($this->once()) |
117 | 117 | ->method('neq') |
118 | - ->with($criteria['alias'] . '.' . $fieldName, $this->stringStartsWith(':')) |
|
118 | + ->with($criteria['alias'].'.'.$fieldName, $this->stringStartsWith(':')) |
|
119 | 119 | ->willReturn($neq); |
120 | 120 | |
121 | 121 | $neq->expects($this->once()) |
122 | 122 | ->method('__toString') |
123 | 123 | ->willReturn($isNotEqualString); |
124 | 124 | |
125 | - $methodName = (!isset($criteria['where']) || WhereType::AND === $criteria['where']) |
|
125 | + $methodName = (!isset($criteria['where']) || WhereType:: AND === $criteria['where']) |
|
126 | 126 | ? 'andWhere' |
127 | 127 | : 'orWhere'; |
128 | 128 |
@@ -22,6 +22,6 @@ |
||
22 | 22 | */ |
23 | 23 | protected function createExpression(Expr $expr, string $fieldName, string $parameterName, string $alias): string |
24 | 24 | { |
25 | - return (string)$expr->isNotNull($alias . '.' . $fieldName); |
|
25 | + return (string) $expr->isNotNull($alias.'.'.$fieldName); |
|
26 | 26 | } |
27 | 27 | } |