@@ -403,7 +403,7 @@ |
||
| 403 | 403 | } |
| 404 | 404 | |
| 405 | 405 | $default = $options['default']; |
| 406 | - if ($column::DATETIME_NOW === ($default instanceof \Stringable ? (string)$default : $default)) { |
|
| 406 | + if ($column::DATETIME_NOW === ($default instanceof \Stringable ? (string) $default : $default)) { |
|
| 407 | 407 | $options['default'] = AbstractColumn::DATETIME_NOW; |
| 408 | 408 | } |
| 409 | 409 | |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | try { |
| 120 | 120 | $capsule = $capsule ?? new Capsule($this->dbal->database($migration->getDatabase())); |
| 121 | 121 | $capsule->getDatabase($migration->getDatabase())->transaction( |
| 122 | - static function () use ($migration, $capsule): void { |
|
| 122 | + static function() use ($migration, $capsule): void { |
|
| 123 | 123 | $migration->withCapsule($capsule)->up(); |
| 124 | 124 | } |
| 125 | 125 | ); |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | ), |
| 145 | 145 | $exception->getMessage() |
| 146 | 146 | ), |
| 147 | - (int)$exception->getCode(), |
|
| 147 | + (int) $exception->getCode(), |
|
| 148 | 148 | $exception |
| 149 | 149 | ); |
| 150 | 150 | } |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | |
| 173 | 173 | $capsule = $capsule ?? new Capsule($this->dbal->database($migration->getDatabase())); |
| 174 | 174 | $capsule->getDatabase()->transaction( |
| 175 | - static function () use ($migration, $capsule): void { |
|
| 175 | + static function() use ($migration, $capsule): void { |
|
| 176 | 176 | $migration->withCapsule($capsule)->down(); |
| 177 | 177 | } |
| 178 | 178 | ); |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | $migrations = []; |
| 54 | 54 | |
| 55 | 55 | foreach ($this->getFilesIterator() as $f) { |
| 56 | - if (! \class_exists($f['class'], false)) { |
|
| 56 | + if (!\class_exists($f['class'], false)) { |
|
| 57 | 57 | //Attempting to load migration class (we can not relay on autoloading here) |
| 58 | 58 | require_once($f['filename']); |
| 59 | 59 | } |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | |
| 74 | 74 | public function registerMigration(string $name, string $class, string $body = null): string |
| 75 | 75 | { |
| 76 | - if (empty($body) && ! \class_exists($class)) { |
|
| 76 | + if (empty($body) && !\class_exists($class)) { |
|
| 77 | 77 | throw new RepositoryException( |
| 78 | 78 | "Unable to register migration '{$class}', representing class does not exists" |
| 79 | 79 | ); |