@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | $expressionList[] = $this->dispatch($child); |
115 | 115 | } |
116 | 116 | |
117 | - switch($expr->getType()) { |
|
117 | + switch ($expr->getType()) { |
|
118 | 118 | case CompositeExpression::TYPE_AND: |
119 | 119 | return new Expr\Andx($expressionList); |
120 | 120 | |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | return new Expr\Orx($expressionList); |
123 | 123 | |
124 | 124 | default: |
125 | - throw new \RuntimeException("Unknown composite " . $expr->getType()); |
|
125 | + throw new \RuntimeException("Unknown composite ".$expr->getType()); |
|
126 | 126 | } |
127 | 127 | } |
128 | 128 | |
@@ -136,10 +136,10 @@ discard block |
||
136 | 136 | throw new QueryException('No aliases are set before invoking walkComparison().'); |
137 | 137 | } |
138 | 138 | |
139 | - $field = $this->queryAliases[0] . '.' . $comparison->getField(); |
|
139 | + $field = $this->queryAliases[0].'.'.$comparison->getField(); |
|
140 | 140 | |
141 | - foreach($this->queryAliases as $alias) { |
|
142 | - if(strpos($comparison->getField() . '.', $alias . '.') === 0) { |
|
141 | + foreach ($this->queryAliases as $alias) { |
|
142 | + if (strpos($comparison->getField().'.', $alias.'.') === 0) { |
|
143 | 143 | $field = $comparison->getField(); |
144 | 144 | break; |
145 | 145 | } |
@@ -149,13 +149,13 @@ discard block |
||
149 | 149 | |
150 | 150 | foreach ($this->parameters as $parameter) { |
151 | 151 | if ($parameter->getName() === $parameterName) { |
152 | - $parameterName .= '_' . count($this->parameters); |
|
152 | + $parameterName .= '_'.count($this->parameters); |
|
153 | 153 | break; |
154 | 154 | } |
155 | 155 | } |
156 | 156 | |
157 | 157 | $parameter = new Parameter($parameterName, $this->walkValue($comparison->getValue())); |
158 | - $placeholder = ':' . $parameterName; |
|
158 | + $placeholder = ':'.$parameterName; |
|
159 | 159 | |
160 | 160 | switch ($comparison->getOperator()) { |
161 | 161 | case Comparison::IN: |
@@ -182,19 +182,19 @@ discard block |
||
182 | 182 | |
183 | 183 | return $this->expr->neq($field, $placeholder); |
184 | 184 | case Comparison::CONTAINS: |
185 | - $parameter->setValue('%' . $parameter->getValue() . '%', $parameter->getType()); |
|
185 | + $parameter->setValue('%'.$parameter->getValue().'%', $parameter->getType()); |
|
186 | 186 | $this->parameters[] = $parameter; |
187 | 187 | |
188 | 188 | return $this->expr->like($field, $placeholder); |
189 | 189 | case Comparison::MEMBER_OF: |
190 | 190 | return $this->expr->isMemberOf($comparison->getField(), $comparison->getValue()->getValue()); |
191 | 191 | case Comparison::STARTS_WITH: |
192 | - $parameter->setValue($parameter->getValue() . '%', $parameter->getType()); |
|
192 | + $parameter->setValue($parameter->getValue().'%', $parameter->getType()); |
|
193 | 193 | $this->parameters[] = $parameter; |
194 | 194 | |
195 | 195 | return $this->expr->like($field, $placeholder); |
196 | 196 | case Comparison::ENDS_WITH: |
197 | - $parameter->setValue('%' . $parameter->getValue(), $parameter->getType()); |
|
197 | + $parameter->setValue('%'.$parameter->getValue(), $parameter->getType()); |
|
198 | 198 | $this->parameters[] = $parameter; |
199 | 199 | |
200 | 200 | return $this->expr->like($field, $placeholder); |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | ); |
211 | 211 | } |
212 | 212 | |
213 | - throw new \RuntimeException("Unknown comparison operator: " . $comparison->getOperator()); |
|
213 | + throw new \RuntimeException("Unknown comparison operator: ".$comparison->getOperator()); |
|
214 | 214 | } |
215 | 215 | } |
216 | 216 |