Completed
Push — master ( 26679d...412cec )
by Andrii
12:10
created
src/QueryBuilder.php 1 patch
Spacing   +6 added lines, -6 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
 
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 
121 121
                 return $this->$method($operator, $condition);
122 122
             } else {
123
-                throw new InvalidParamException('Found unknown operator in query: ' . $operator);
123
+                throw new InvalidParamException('Found unknown operator in query: '.$operator);
124 124
             }
125 125
         } else {
126 126
             return $this->buildHashCondition($condition);
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
         foreach ($condition as $attribute => $value) {
134 134
             if (is_array($value)) { // IN condition
135 135
                 // $parts[] = [$attribute.'s' => join(',',$value)];
136
-                $parts[$attribute . 's'] = implode(',', $value);
136
+                $parts[$attribute.'s'] = implode(',', $value);
137 137
             } else {
138 138
                 $parts[$attribute] = $value;
139 139
             }
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
 
145 145
     private function buildLikeCondition($operator, $operands)
146 146
     {
147
-        return [$operands[0] . '_like' => $operands[1]];
147
+        return [$operands[0].'_like' => $operands[1]];
148 148
     }
149 149
 
150 150
     private function buildCompareCondition($operator, $operands)
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
             throw new InvalidParamException("Operator '$operator' requires three operands.");
154 154
         }
155 155
 
156
-        return [$operands[0] . '_' . $operator => $operands[1]];
156
+        return [$operands[0].'_'.$operator => $operands[1]];
157 157
     }
158 158
 
159 159
     private function buildAndCondition($operator, $operands)
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
             }
200 200
         }
201 201
 
202
-        return [$column . '_in' => $values];
202
+        return [$column.'_in' => $values];
203 203
     }
204 204
 
205 205
     private function buildEqCondition($operator, $operands)
Please login to merge, or discard this patch.