Passed
Push — main ( 0ad8f5...e78d26 )
by Thierry
28:37 queued 19:50
created
src/Db/Database.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@
 block discarded – undo
124 124
         foreach (array_reverse($alter) as $index) {
125 125
             // Can't alter primary keys
126 126
             if ($index->type !== 'PRIMARY') {
127
-                $queries[] =  $this->driver->getCreateIndexQuery($table, $index->type,
127
+                $queries[] = $this->driver->getCreateIndexQuery($table, $index->type,
128 128
                     $index->name, '(' . implode(', ', $index->columns) . ')');
129 129
             }
130 130
         }
Please login to merge, or discard this patch.
src/Db/Query.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,8 +15,7 @@
 block discarded – undo
15 15
     {
16 16
         return preg_match('~^INTO~', $query) ||
17 17
             $this->driver->result("SELECT sqlite_compileoption_used('ENABLE_UPDATE_DELETE_LIMIT')") ?
18
-            $this->driver->getLimitClause($query, $where, 1, 0) :
19
-            //! use primary key in tables with WITHOUT rowid
18
+            $this->driver->getLimitClause($query, $where, 1, 0) : //! use primary key in tables with WITHOUT rowid
20 19
             " $query WHERE rowid = (SELECT rowid FROM " . $this->driver->escapeTableName($table) . $where . ' LIMIT 1)';
21 20
     }
22 21
 
Please login to merge, or discard this patch.
src/Db/Grammar.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
             if ($name == '') {
34 34
                 continue;
35 35
             }
36
-            $columns = implode(", ", array_map(function ($key) {
36
+            $columns = implode(", ", array_map(function($key) {
37 37
                 return $this->escapeId($key);
38 38
             }, $index->columns));
39 39
             $query .= ";\n\n" . $this->getCreateIndexQuery($table, $index->type, $name, "($columns)");
Please login to merge, or discard this patch.