@@ -114,9 +114,9 @@ discard block |
||
| 114 | 114 | */ |
| 115 | 115 | public function getConnect() |
| 116 | 116 | { |
| 117 | - if (! $this->isConnected()) { |
|
| 117 | + if (!$this->isConnected()) { |
|
| 118 | 118 | $this->connect(); |
| 119 | - if (! $this->conn->getPdo() instanceof PDO) { |
|
| 119 | + if (!$this->conn->getPdo() instanceof PDO) { |
|
| 120 | 120 | $this->conn->reconnect(); |
| 121 | 121 | } |
| 122 | 122 | } |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | public function connect() |
| 158 | 158 | { |
| 159 | 159 | try { |
| 160 | - if (! $this->hasConnectionName($this->connection)) { |
|
| 160 | + if (!$this->hasConnectionName($this->connection)) { |
|
| 161 | 161 | $this->getCapsule()->addConnection([ |
| 162 | 162 | 'driver' => $this->driver, |
| 163 | 163 | 'host' => $this->getConfig('host'), |
@@ -233,7 +233,7 @@ discard block |
||
| 233 | 233 | |
| 234 | 234 | $query = $method . ' ' . $charset; |
| 235 | 235 | |
| 236 | - return (bool)$this->query($query); |
|
| 236 | + return (bool) $this->query($query); |
|
| 237 | 237 | } |
| 238 | 238 | |
| 239 | 239 | /** |
@@ -270,7 +270,7 @@ discard block |
||
| 270 | 270 | $result = $this->prepare($sql); |
| 271 | 271 | $this->execute($result); |
| 272 | 272 | |
| 273 | - if ($this->saveAffectedRows($result) === 0 && $this->isResult($result) && ! $this->isSelectQuery($sql)) { |
|
| 273 | + if ($this->saveAffectedRows($result) === 0 && $this->isResult($result) && !$this->isSelectQuery($sql)) { |
|
| 274 | 274 | $result = true; |
| 275 | 275 | } |
| 276 | 276 | $this->getConnect()->logQuery($sql, [], $this->getElapsedTime($start)); |
@@ -385,7 +385,7 @@ discard block |
||
| 385 | 385 | */ |
| 386 | 386 | public function execute($result) |
| 387 | 387 | { |
| 388 | - return $this->isResult($result) ? $result->execute() : (bool)$result; |
|
| 388 | + return $this->isResult($result) ? $result->execute() : (bool) $result; |
|
| 389 | 389 | } |
| 390 | 390 | |
| 391 | 391 | /** |