@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | if (empty($this->host) || empty($this->schema)) { |
148 | 148 | throw new ConfigurationException('The hostname and/or schema were not set'); |
149 | 149 | } |
150 | - $dsn = 'mysql:host=' . $this->host . ';dbname=' . $this->schema . ';charset=utf8mb4'; |
|
150 | + $dsn = 'mysql:host='.$this->host.';dbname='.$this->schema.';charset=utf8mb4'; |
|
151 | 151 | $this->connection = new PDO( |
152 | 152 | $dsn, |
153 | 153 | $this->user, |
@@ -217,7 +217,7 @@ discard block |
||
217 | 217 | */ |
218 | 218 | public function getConnection() |
219 | 219 | { |
220 | - return ! $this->connection instanceof \PDO ? $this->connection : null; |
|
220 | + return !$this->connection instanceof \PDO ? $this->connection : null; |
|
221 | 221 | } |
222 | 222 | |
223 | 223 | /** |
@@ -373,7 +373,7 @@ discard block |
||
373 | 373 | public function selectAll(string $sql, ...$arguments): array |
374 | 374 | { |
375 | 375 | $records = $this->exec($sql, true, ...$arguments); |
376 | - return !empty($records) ? $records : []; |
|
376 | + return !empty($records) ? $records : []; |
|
377 | 377 | } |
378 | 378 | |
379 | 379 | /** |
@@ -388,7 +388,7 @@ discard block |
||
388 | 388 | public function selectOne(string $sql, ...$arguments): array |
389 | 389 | { |
390 | 390 | $records = $this->exec($sql, true, ...$arguments); |
391 | - return !empty($records) ? $records[0] : []; |
|
391 | + return !empty($records) ? $records[0] : []; |
|
392 | 392 | } |
393 | 393 | |
394 | 394 | /** |
@@ -396,6 +396,6 @@ discard block |
||
396 | 396 | */ |
397 | 397 | public function __toString() |
398 | 398 | { |
399 | - return __CLASS__ . ' Instance {Host: ' . $this->host . ', Schema: ' . $this->schema . ', User: ' . $this->user .'}'; |
|
399 | + return __CLASS__.' Instance {Host: '.$this->host.', Schema: '.$this->schema.', User: '.$this->user.'}'; |
|
400 | 400 | } |
401 | 401 | } |