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