Passed
Branch master (fddfe5)
by y
03:08 queued 48s
created
src/DB.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -137,8 +137,7 @@  discard block
 block discarded – undo
137 137
         if ($this->transactions === 0) {
138 138
             $this->logger->__invoke("BEGIN TRANSACTION");
139 139
             parent::beginTransaction();
140
-        }
141
-        else {
140
+        } else {
142 141
             $this->exec("SAVEPOINT SAVEPOINT_{$this->transactions}");
143 142
         }
144 143
         $this->transactions++;
@@ -157,8 +156,7 @@  discard block
 block discarded – undo
157 156
         if ($this->transactions === 1) {
158 157
             $this->logger->__invoke("COMMIT TRANSACTION");
159 158
             parent::commit();
160
-        }
161
-        else {
159
+        } else {
162 160
             $savepoint = $this->transactions - 1;
163 161
             $this->exec("RELEASE SAVEPOINT SAVEPOINT_{$savepoint}");
164 162
         }
@@ -238,8 +236,7 @@  discard block
 block discarded – undo
238 236
             if ($this->isSQLite()) {
239 237
                 $info = $this->query("PRAGMA table_info({$this->quote($name)})")->fetchAll();
240 238
                 $cols = array_column($info, 'name');
241
-            }
242
-            else {
239
+            } else {
243 240
                 $cols = $this->query(
244 241
                     "SELECT column_name FROM information_schema.tables WHERE table_name = {$this->quote($name)}"
245 242
                 )->fetchAll(self::FETCH_COLUMN);
@@ -457,8 +454,7 @@  discard block
 block discarded – undo
457 454
         if ($this->transactions === 1) {
458 455
             $this->logger->__invoke("ROLLBACK TRANSACTION");
459 456
             parent::rollBack();
460
-        }
461
-        else {
457
+        } else {
462 458
             $savepoint = $this->transactions - 1;
463 459
             $this->exec("ROLLBACK TO SAVEPOINT SAVEPOINT_{$savepoint}");
464 460
         }
Please login to merge, or discard this patch.