@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | public function buildOrderBy($orderBy, &$parts) |
80 | 80 | { |
81 | 81 | if (!empty($orderBy)) { |
82 | - $parts['orderby'] = key($orderBy) . $this->_sort[reset($orderBy)]; |
|
82 | + $parts['orderby'] = key($orderBy).$this->_sort[reset($orderBy)]; |
|
83 | 83 | } |
84 | 84 | } |
85 | 85 | |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | |
124 | 124 | return $this->$method($operator, $condition); |
125 | 125 | } else { |
126 | - throw new InvalidParamException('Found unknown operator in query: ' . $operator); |
|
126 | + throw new InvalidParamException('Found unknown operator in query: '.$operator); |
|
127 | 127 | } |
128 | 128 | } else { |
129 | 129 | return $this->buildHashCondition($condition); |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | foreach ($condition as $attribute => $value) { |
137 | 137 | if (is_array($value)) { // IN condition |
138 | 138 | // $parts[] = [$attribute.'s' => join(',',$value)]; |
139 | - $parts[$attribute . 's'] = implode(',', $value); |
|
139 | + $parts[$attribute.'s'] = implode(',', $value); |
|
140 | 140 | } else { |
141 | 141 | $parts[$attribute] = $value; |
142 | 142 | } |
@@ -147,12 +147,12 @@ discard block |
||
147 | 147 | |
148 | 148 | private function buildLikeCondition($operator, $operands) |
149 | 149 | { |
150 | - return [$operands[0] . '_like' => $operands[1]]; |
|
150 | + return [$operands[0].'_like' => $operands[1]]; |
|
151 | 151 | } |
152 | 152 | |
153 | 153 | private function buildIlikeCondition($operator, $operands) |
154 | 154 | { |
155 | - return [$operands[0] . '_ilike' => $operands[1]]; |
|
155 | + return [$operands[0].'_ilike' => $operands[1]]; |
|
156 | 156 | } |
157 | 157 | |
158 | 158 | private function buildCompareCondition($operator, $operands) |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | throw new InvalidParamException("Operator '$operator' requires three operands."); |
162 | 162 | } |
163 | 163 | |
164 | - return [$operands[0] . '_' . $operator => $operands[1]]; |
|
164 | + return [$operands[0].'_'.$operator => $operands[1]]; |
|
165 | 165 | } |
166 | 166 | |
167 | 167 | private function buildAndCondition($operator, $operands) |
@@ -208,9 +208,9 @@ discard block |
||
208 | 208 | } |
209 | 209 | |
210 | 210 | if ($not) { |
211 | - $key = $column . '_ni'; // not in |
|
211 | + $key = $column.'_ni'; // not in |
|
212 | 212 | } else { |
213 | - $key = $column . '_in'; |
|
213 | + $key = $column.'_in'; |
|
214 | 214 | } |
215 | 215 | return [$key => $values]; |
216 | 216 | } |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | { |
232 | 232 | $key = array_shift($operands); |
233 | 233 | |
234 | - return [$key . '_' . $operator => reset($operands)]; |
|
234 | + return [$key.'_'.$operator => reset($operands)]; |
|
235 | 235 | } |
236 | 236 | |
237 | 237 | protected function buildCompositeInCondition($operator, $columns, $values) |