@@ -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 | |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | |
| 122 | 122 | return $this->$method($operator, $condition); |
| 123 | 123 | } else { |
| 124 | - throw new InvalidParamException('Found unknown operator in query: ' . $operator); |
|
| 124 | + throw new InvalidParamException('Found unknown operator in query: '.$operator); |
|
| 125 | 125 | } |
| 126 | 126 | } else { |
| 127 | 127 | return $this->buildHashCondition($condition); |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | foreach ($condition as $attribute => $value) { |
| 135 | 135 | if (is_array($value)) { // IN condition |
| 136 | 136 | // $parts[] = [$attribute.'s' => join(',',$value)]; |
| 137 | - $parts[$attribute . 's'] = implode(',', $value); |
|
| 137 | + $parts[$attribute.'s'] = implode(',', $value); |
|
| 138 | 138 | } else { |
| 139 | 139 | $parts[$attribute] = $value; |
| 140 | 140 | } |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | |
| 146 | 146 | private function buildLikeCondition($operator, $operands) |
| 147 | 147 | { |
| 148 | - return [$operands[0] . '_like' => $operands[1]]; |
|
| 148 | + return [$operands[0].'_like' => $operands[1]]; |
|
| 149 | 149 | } |
| 150 | 150 | |
| 151 | 151 | private function buildCompareCondition($operator, $operands) |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | throw new InvalidParamException("Operator '$operator' requires three operands."); |
| 155 | 155 | } |
| 156 | 156 | |
| 157 | - return [$operands[0] . '_' . $operator => $operands[1]]; |
|
| 157 | + return [$operands[0].'_'.$operator => $operands[1]]; |
|
| 158 | 158 | } |
| 159 | 159 | |
| 160 | 160 | private function buildAndCondition($operator, $operands) |
@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | } |
| 201 | 201 | } |
| 202 | 202 | |
| 203 | - return [$column . '_in' => $values]; |
|
| 203 | + return [$column.'_in' => $values]; |
|
| 204 | 204 | } |
| 205 | 205 | |
| 206 | 206 | private function buildEqCondition($operator, $operands) |
@@ -214,7 +214,7 @@ discard block |
||
| 214 | 214 | { |
| 215 | 215 | $key = array_shift($operands); |
| 216 | 216 | |
| 217 | - return [$key . '_' . $operator => reset($operands)]; |
|
| 217 | + return [$key.'_'.$operator => reset($operands)]; |
|
| 218 | 218 | } |
| 219 | 219 | |
| 220 | 220 | protected function buildCompositeInCondition($operator, $columns, $values) |