Passed
Pull Request — master (#2)
by Maksim
02:15
created
src/BaseAdapter.php 2 patches
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -644,12 +644,15 @@
 block discarded – undo
644 644
         if (is_string($tableName) && $tableName = $this->getRawTableName($tableName)) {
645 645
             if (strpos($tableName, 'SELECT') !== false) {
646 646
                 $toSql[] = '(' . $this->quoteSql($tableName) . ')';
647
-            } else {
647
+            }
648
+            else {
648 649
                 $toSql[] = $this->quoteTableName($tableName);
649 650
             }
650
-        } else if ($tableName instanceof QueryBuilder) {
651
+        }
652
+        else if ($tableName instanceof QueryBuilder) {
651 653
             $toSql[] = '(' . $this->quoteSql($tableName->toSQL()) . ')';
652
-        } else {
654
+        }
655
+        else {
653 656
             throw new QBException('Incorrect table name');
654 657
         }
655 658
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -277,7 +277,7 @@
 block discarded – undo
277 277
             }
278 278
         }
279 279
 
280
-        if (is_array($columns) ) {
280
+        if (is_array($columns)) {
281 281
             return implode(', ', $columns);
282 282
         }
283 283
 
Please login to merge, or discard this patch.