@@ -78,7 +78,7 @@ |
||
78 | 78 | !empty($config['connections']) |
79 | 79 | && is_array($config['connections']) |
80 | 80 | ) { |
81 | - /** @var array<string, array<string, mixed>> $connections */ |
|
81 | + /** @var array<string, array<string, mixed>> $connections */ |
|
82 | 82 | $connections = $config['connections']; |
83 | 83 | |
84 | 84 | foreach ($connections as $name => $connection) { |
@@ -421,12 +421,12 @@ |
||
421 | 421 | $this->createPDO(); |
422 | 422 | } |
423 | 423 | |
424 | - /** |
|
425 | - * Change the query parameters placeholder with the value |
|
426 | - * @param string $query |
|
427 | - * @param array<int, mixed> $params |
|
428 | - * @return string |
|
429 | - */ |
|
424 | + /** |
|
425 | + * Change the query parameters placeholder with the value |
|
426 | + * @param string $query |
|
427 | + * @param array<int, mixed> $params |
|
428 | + * @return string |
|
429 | + */ |
|
430 | 430 | protected function replaceParameters(string $query, array $params): string |
431 | 431 | { |
432 | 432 | $driver = $this->driver; |
@@ -198,10 +198,10 @@ discard block |
||
198 | 198 | return $this->appname; |
199 | 199 | } |
200 | 200 | |
201 | - /** |
|
202 | - * Return the host |
|
203 | - * @return string |
|
204 | - */ |
|
201 | + /** |
|
202 | + * Return the host |
|
203 | + * @return string |
|
204 | + */ |
|
205 | 205 | public function getHostname(): string |
206 | 206 | { |
207 | 207 | return $this->hostname; |
@@ -399,12 +399,12 @@ discard block |
||
399 | 399 | public function getDriverClassName(): string |
400 | 400 | { |
401 | 401 | $maps = [ |
402 | - 'mysql' => MySQL::class, |
|
403 | - 'pgsql' => PostgreSQL::class, |
|
404 | - 'sqlsrv' => SQLServer::class, |
|
405 | - 'oci' => Oracle::class, |
|
406 | - 'oracle' => Oracle::class, |
|
407 | - 'sqlite' => SQLite::class, |
|
402 | + 'mysql' => MySQL::class, |
|
403 | + 'pgsql' => PostgreSQL::class, |
|
404 | + 'sqlsrv' => SQLServer::class, |
|
405 | + 'oci' => Oracle::class, |
|
406 | + 'oracle' => Oracle::class, |
|
407 | + 'sqlite' => SQLite::class, |
|
408 | 408 | ]; |
409 | 409 | |
410 | 410 | return isset($maps[$this->driver]) |
@@ -248,8 +248,8 @@ |
||
248 | 248 | $values = $column->get('values'); |
249 | 249 | |
250 | 250 | if (!empty($values)) { |
251 | - $values = array_map([$this, 'value'], $values); |
|
252 | - $type = 'ENUM(' . implode(',', $values) . ')'; |
|
251 | + $values = array_map([$this, 'value'], $values); |
|
252 | + $type = 'ENUM(' . implode(',', $values) . ')'; |
|
253 | 253 | } |
254 | 254 | |
255 | 255 | return $type; |
@@ -114,8 +114,8 @@ |
||
114 | 114 | $values = $column->get('values'); |
115 | 115 | |
116 | 116 | if (!empty($values)) { |
117 | - $values = array_map([$this, 'value'], $values); |
|
118 | - $type = 'ENUM(' . implode(',', $values) . ')'; |
|
117 | + $values = array_map([$this, 'value'], $values); |
|
118 | + $type = 'ENUM(' . implode(',', $values) . ')'; |
|
119 | 119 | } |
120 | 120 | |
121 | 121 | return $type; |