Passed
Push — master ( 04902e...99771f )
by y
02:22
created
src/DB.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -166,8 +166,7 @@  discard block
 block discarded – undo
166 166
 
167 167
         if ($this->isMySQL()) {
168 168
             $this->exec("SET time_zone = 'UTC'");
169
-        }
170
-        elseif ($this->isSQLite()) {
169
+        } elseif ($this->isSQLite()) {
171 170
             // polyfill sqlite functions
172 171
             $this->sqliteCreateFunctions([ // deterministic functions
173 172
                 // https://www.sqlite.org/lang_mathfunc.html
@@ -222,8 +221,7 @@  discard block
 block discarded – undo
222 221
         if ($this->transactions === 0) {
223 222
             $this->logger->__invoke("BEGIN TRANSACTION");
224 223
             parent::beginTransaction();
225
-        }
226
-        else {
224
+        } else {
227 225
             $this->exec("SAVEPOINT SAVEPOINT_{$this->transactions}");
228 226
         }
229 227
         $this->transactions++;
@@ -242,8 +240,7 @@  discard block
 block discarded – undo
242 240
         if ($this->transactions === 1) {
243 241
             $this->logger->__invoke("COMMIT TRANSACTION");
244 242
             parent::commit();
245
-        }
246
-        else {
243
+        } else {
247 244
             $savepoint = $this->transactions - 1;
248 245
             $this->exec("RELEASE SAVEPOINT SAVEPOINT_{$savepoint}");
249 246
         }
@@ -536,8 +533,7 @@  discard block
 block discarded – undo
536 533
         if ($this->transactions === 1) {
537 534
             $this->logger->__invoke("ROLLBACK TRANSACTION");
538 535
             parent::rollBack();
539
-        }
540
-        else {
536
+        } else {
541 537
             $savepoint = $this->transactions - 1;
542 538
             $this->exec("ROLLBACK TO SAVEPOINT SAVEPOINT_{$savepoint}");
543 539
         }
Please login to merge, or discard this patch.