@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | return $this->databases[$database]; |
104 | 104 | } |
105 | 105 | |
106 | - if (! $this->config->hasDatabase($database)) { |
|
106 | + if (!$this->config->hasDatabase($database)) { |
|
107 | 107 | throw new DBALException( |
108 | 108 | "Unable to create Database, no presets for '{$database}' found" |
109 | 109 | ); |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | |
169 | 169 | if ($driverObject instanceof LoggerAwareInterface) { |
170 | 170 | $logger = $this->getLoggerForDriver($driverObject); |
171 | - if (! $logger instanceof NullLogger) { |
|
171 | + if (!$logger instanceof NullLogger) { |
|
172 | 172 | $driverObject->setLogger($logger); |
173 | 173 | } |
174 | 174 | } |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | |
215 | 215 | private function getLoggerForDriver(DriverInterface $driver): LoggerInterface |
216 | 216 | { |
217 | - if (! $this->loggerFactory) { |
|
217 | + if (!$this->loggerFactory) { |
|
218 | 218 | return $this->logger ??= new NullLogger(); |
219 | 219 | } |
220 | 220 |
@@ -834,7 +834,7 @@ |
||
834 | 834 | foreach ($target->getForeignKeys() as $foreign) { |
835 | 835 | $foreign->columns( |
836 | 836 | array_map( |
837 | - static function ($column) use ($initial, $name) { |
|
837 | + static function($column) use ($initial, $name) { |
|
838 | 838 | if ($column === $initial->getName()) { |
839 | 839 | return $name->getName(); |
840 | 840 | } |
@@ -90,7 +90,7 @@ |
||
90 | 90 | */ |
91 | 91 | public function getColumnsWithSort(): array |
92 | 92 | { |
93 | - return array_map(function ($column) { |
|
93 | + return array_map(function($column) { |
|
94 | 94 | if ($order = $this->sort[$column] ?? null) { |
95 | 95 | return "$column $order"; |
96 | 96 | } |
@@ -34,7 +34,7 @@ |
||
34 | 34 | * @param array $options |
35 | 35 | */ |
36 | 36 | public function __construct( |
37 | - string|\Stringable $dsn, |
|
37 | + string | \Stringable $dsn, |
|
38 | 38 | ?string $user = null, |
39 | 39 | ?string $password = null, |
40 | 40 | array $options = [] |
@@ -34,7 +34,7 @@ |
||
34 | 34 | * @param array $options |
35 | 35 | */ |
36 | 36 | public function __construct( |
37 | - string|\Stringable $dsn, |
|
37 | + string | \Stringable $dsn, |
|
38 | 38 | ?string $user = null, |
39 | 39 | ?string $password = null, |
40 | 40 | array $options = [] |