Passed
Push — master ( cfb65e...9c8e10 )
by 世昌
03:13
created
suda/src/orm/connection/Connection.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
         $this->config = $config;
80 80
         $this->name = $name ?? 'anonymous';
81 81
         $this->observer = new NullObserver;
82
-        register_shutdown_function(function () {
82
+        register_shutdown_function(function() {
83 83
             $this->onBeforeSystemShutdown();
84 84
         });
85 85
     }
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
             try {
108 108
                 $this->pdo = $this->createPDO();
109 109
                 $this->id = static::$connectionCount;
110
-                static::$connectionCount ++;
110
+                static::$connectionCount++;
111 111
             } catch (PDOException $e) {
112 112
                 throw new SQLException(sprintf(
113 113
                     "%s connect database error:%s",
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
      */
181 181
     public function beginTransaction()
182 182
     {
183
-        $this->transaction ++;
183
+        $this->transaction++;
184 184
         if ($this->transaction == 1) {
185 185
             $this->pdo->beginTransaction();
186 186
         }
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
      * @param string $query
371 371
      * @return string
372 372
      */
373
-    public function prefix( string $query):string
373
+    public function prefix(string $query):string
374 374
     {
375 375
         // _:table 前缀控制
376 376
         $prefix = $this->getConfig('prefix', '');
Please login to merge, or discard this patch.