Passed
Push — dev ( 65908c...19e502 )
by 世昌
02:14
created
suda/src/database/statement/ReadStatement.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
     protected function whereStringArray(string $where, array $whereBinder)
172 172
     {
173 173
         list($where, $whereBinder) = $this->prepareWhereString($where, $whereBinder);
174
-        $this->where = 'WHERE ' . $where;
174
+        $this->where = 'WHERE '.$where;
175 175
         $this->binder = $this->mergeBinder($this->binder, $whereBinder);
176 176
     }
177 177
 
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
      */
184 184
     public function groupBy(string $what)
185 185
     {
186
-        $this->groupBy = 'GROUP BY ' . $what;
186
+        $this->groupBy = 'GROUP BY '.$what;
187 187
         return $this;
188 188
     }
189 189
 
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
     {
228 228
 
229 229
         list($having, $havingBinder) = $this->prepareWhereString($having, $havingBinder);
230
-        $this->having = 'HAVING ' . $having;
230
+        $this->having = 'HAVING '.$having;
231 231
         $this->binder = $this->mergeBinder($this->binder, $havingBinder);
232 232
     }
233 233
 
@@ -242,9 +242,9 @@  discard block
 block discarded – undo
242 242
     {
243 243
         $order = strtoupper($order);
244 244
         if (strlen($this->orderBy) > 0) {
245
-            $this->orderBy .= ',`' . $what . '` ' . $order;
245
+            $this->orderBy .= ',`'.$what.'` '.$order;
246 246
         } else {
247
-            $this->orderBy = 'ORDER BY `' . $what . '` ' . $order;
247
+            $this->orderBy = 'ORDER BY `'.$what.'` '.$order;
248 248
         }
249 249
         return $this;
250 250
     }
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
      */
259 259
     public function limit(int $start, int $length = null)
260 260
     {
261
-        $this->limit = 'LIMIT ' . $start . ($length !== null ? ',' . $length : '');
261
+        $this->limit = 'LIMIT '.$start.($length !== null ? ','.$length : '');
262 262
         return $this;
263 263
     }
264 264
 
Please login to merge, or discard this patch.