@@ -78,7 +78,7 @@ discard block |
||
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 |
||
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 |
||
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 | } |