Completed
Push — master ( ea50c0...d3756e )
by Dmitry
06:23
created
src/QueryBuilder.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
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
 
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 
123 123
                 return $this->$method($operator, $condition);
124 124
             } else {
125
-                throw new InvalidParamException('Found unknown operator in query: ' . $operator);
125
+                throw new InvalidParamException('Found unknown operator in query: '.$operator);
126 126
             }
127 127
         } else {
128 128
             return $this->buildHashCondition($condition);
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
         foreach ($condition as $attribute => $value) {
136 136
             if (is_array($value)) { // IN condition
137 137
                 // $parts[] = [$attribute.'s' => join(',',$value)];
138
-                $parts[$attribute . 's'] = implode(',', $value);
138
+                $parts[$attribute.'s'] = implode(',', $value);
139 139
             } else {
140 140
                 $parts[$attribute] = $value;
141 141
             }
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 
147 147
     private function buildLikeCondition($operator, $operands)
148 148
     {
149
-        return [$operands[0] . '_like' => $operands[1]];
149
+        return [$operands[0].'_like' => $operands[1]];
150 150
     }
151 151
 
152 152
     private function buildCompareCondition($operator, $operands)
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
             throw new InvalidParamException("Operator '$operator' requires three operands.");
156 156
         }
157 157
 
158
-        return [$operands[0] . '_' . $operator => $operands[1]];
158
+        return [$operands[0].'_'.$operator => $operands[1]];
159 159
     }
160 160
 
161 161
     private function buildAndCondition($operator, $operands)
@@ -202,9 +202,9 @@  discard block
 block discarded – undo
202 202
         }
203 203
 
204 204
         if ($not) {
205
-            $key = $column . '_ni'; // not in
205
+            $key = $column.'_ni'; // not in
206 206
         } else {
207
-            $key = $column . '_in';
207
+            $key = $column.'_in';
208 208
         }
209 209
         return [$key => $values];
210 210
     }
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
     {
226 226
         $key = array_shift($operands);
227 227
 
228
-        return [$key . '_' . $operator => reset($operands)];
228
+        return [$key.'_'.$operator => reset($operands)];
229 229
     }
230 230
 
231 231
     protected function buildCompositeInCondition($operator, $columns, $values)
Please login to merge, or discard this patch.