Passed
Push — dev ( 12acdb...79ab41 )
by 世昌
02:36
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",
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
     public function beginTransaction()
201 201
     {
202 202
         $this->prepareConnection();
203
-        $this->transaction ++;
203
+        $this->transaction++;
204 204
         if ($this->transaction == 1) {
205 205
             $this->pdo->beginTransaction();
206 206
         }
Please login to merge, or discard this patch.