@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | */ |
102 | 102 | public static function setDefault(string $key, string $value) |
103 | 103 | { |
104 | - self::$defaultConfig[$key] = $value; |
|
104 | + self::$defaultConfig[$key] = $value; |
|
105 | 105 | } |
106 | 106 | |
107 | 107 | /** |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | if (empty($this->host) || empty($this->schema)) { |
144 | 144 | throw new ConfigurationException('The hostname and/or schema were not set'); |
145 | 145 | } |
146 | - $dsn = 'mysql:host=' . $this->host . ';dbname=' . $this->schema . ';charset=utf8mb4'; |
|
146 | + $dsn = 'mysql:host='.$this->host.';dbname='.$this->schema.';charset=utf8mb4'; |
|
147 | 147 | $this->connection = new PDO( |
148 | 148 | $dsn, |
149 | 149 | $this->user, |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | */ |
214 | 214 | public function getConnection() |
215 | 215 | { |
216 | - return ! $this->connection instanceof \PDO ? $this->connection : null; |
|
216 | + return !$this->connection instanceof \PDO ? $this->connection : null; |
|
217 | 217 | } |
218 | 218 | |
219 | 219 | /** |
@@ -369,7 +369,7 @@ discard block |
||
369 | 369 | public function selectAll(string $sql, ...$arguments): array |
370 | 370 | { |
371 | 371 | $records = $this->exec($sql, true, ...$arguments); |
372 | - return !empty($records) ? $records : []; |
|
372 | + return !empty($records) ? $records : []; |
|
373 | 373 | } |
374 | 374 | |
375 | 375 | /** |
@@ -384,7 +384,7 @@ discard block |
||
384 | 384 | public function selectOne(string $sql, ...$arguments): array |
385 | 385 | { |
386 | 386 | $records = $this->exec($sql, true, ...$arguments); |
387 | - return !empty($records) ? $records[0] : []; |
|
387 | + return !empty($records) ? $records[0] : []; |
|
388 | 388 | } |
389 | 389 | |
390 | 390 | /** |
@@ -392,6 +392,6 @@ discard block |
||
392 | 392 | */ |
393 | 393 | public function __toString() |
394 | 394 | { |
395 | - return __CLASS__ . ' Instance {Host: ' . $this->host . ', Schema: ' . $this->schema . ', User: ' . $this->user .'}'; |
|
395 | + return __CLASS__.' Instance {Host: '.$this->host.', Schema: '.$this->schema.', User: '.$this->user.'}'; |
|
396 | 396 | } |
397 | 397 | } |