@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | foreach ($this->repository->getMigrations() as $migration) { |
| 113 | 113 | $database = $this->dbal->database($migration->getDatabase()); |
| 114 | 114 | |
| 115 | - if (! isset($result[$database->getName()])) { |
|
| 115 | + if (!isset($result[$database->getName()])) { |
|
| 116 | 116 | $result[$database->getName()] = $database; |
| 117 | 117 | } |
| 118 | 118 | } |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | try { |
| 169 | 169 | $capsule = $capsule ?? new Capsule($this->dbal->database($migration->getDatabase())); |
| 170 | 170 | $capsule->getDatabase()->transaction( |
| 171 | - static function () use ($migration, $capsule): void { |
|
| 171 | + static function() use ($migration, $capsule): void { |
|
| 172 | 172 | $migration->withCapsule($capsule)->up(); |
| 173 | 173 | } |
| 174 | 174 | ); |
@@ -194,7 +194,7 @@ discard block |
||
| 194 | 194 | ), |
| 195 | 195 | $exception->getMessage() |
| 196 | 196 | ), |
| 197 | - (int)$exception->getCode(), |
|
| 197 | + (int) $exception->getCode(), |
|
| 198 | 198 | $exception |
| 199 | 199 | ); |
| 200 | 200 | } |
@@ -222,7 +222,7 @@ discard block |
||
| 222 | 222 | |
| 223 | 223 | $capsule = $capsule ?? new Capsule($this->dbal->database($migration->getDatabase())); |
| 224 | 224 | $capsule->getDatabase()->transaction( |
| 225 | - static function () use ($migration, $capsule): void { |
|
| 225 | + static function() use ($migration, $capsule): void { |
|
| 226 | 226 | $migration->withCapsule($capsule)->down(); |
| 227 | 227 | } |
| 228 | 228 | ); |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | |
| 10 | 10 | declare(strict_types=1); |
| 11 | 11 | |
| 12 | -spl_autoload_register(static function (string $class) { |
|
| 12 | +spl_autoload_register(static function(string $class) { |
|
| 13 | 13 | if (strpos($class, 'Spiral\\Migrations\\') === 0) { |
| 14 | 14 | $original = 'Cycle\\Migrations\\' . substr($class, 18); |
| 15 | 15 | |