Passed
Push — dev ( 461d4a...6b4bd1 )
by 世昌
05:02
created
suda/src/application/database/DebugObserver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
     {
48 48
         $this->count++;
49 49
         $query = $connection->prefix($statement->getString());
50
-        $this->debug->recordTiming('query', $timeSpend, $this->count . ' queries');
50
+        $this->debug->recordTiming('query', $timeSpend, $this->count.' queries');
51 51
         $status = $result ? 'OK' : 'Err';
52 52
         if ($result) {
53 53
             $effect = $statement->getStatement()->rowCount();
Please login to merge, or discard this patch.
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->connectionDatabase(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.