Passed
Push — dev ( f65c5c...785e91 )
by 世昌
02:16
created
suda/src/database/connection/Connection.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         $this->config = $config;
79 79
         $this->name = $name ?? 'anonymous';
80 80
         $this->observer = new NullObserver;
81
-        register_shutdown_function(function () {
81
+        register_shutdown_function(function() {
82 82
             $this->onBeforeSystemShutdown();
83 83
         });
84 84
     }
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
                 $this->pdo = $this->createPDO();
109 109
                 $this->observer->connectDatabase(microtime(true) - $time);
110 110
                 $this->id = static::$connectionCount;
111
-                static::$connectionCount ++;
111
+                static::$connectionCount++;
112 112
             } catch (PDOException $e) {
113 113
                 throw new SQLException(sprintf(
114 114
                     "%s connect database error:%s",
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
      */
182 182
     public function beginTransaction()
183 183
     {
184
-        $this->transaction ++;
184
+        $this->transaction++;
185 185
         if ($this->transaction == 1) {
186 186
             $this->pdo->beginTransaction();
187 187
         }
Please login to merge, or discard this patch.