@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | |
| 3 | 3 | namespace Gruberro\MongoDbMigrations\Console\Command; |
| 4 | 4 | |
@@ -1,4 +1,4 @@ discard block |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | |
| 3 | 3 | namespace Gruberro\MongoDbMigrations\Console\Command; |
| 4 | 4 | |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | } |
| 115 | 115 | |
| 116 | 116 | if ($id !== null) { |
| 117 | - $migrations = array_filter($migrations, function (MongoDbMigrations\MigrationInterface $migration) use ($id): bool { |
|
| 117 | + $migrations = array_filter($migrations, function(MongoDbMigrations\MigrationInterface $migration) use ($id): bool { |
|
| 118 | 118 | return $migration->getId() === $id; |
| 119 | 119 | }); |
| 120 | 120 | |
@@ -1,4 +1,4 @@ discard block |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | |
| 3 | 3 | namespace Gruberro\MongoDbMigrations\Console\Command; |
| 4 | 4 | |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | protected function getMigrations(array $directories): array |
| 33 | 33 | { |
| 34 | 34 | foreach ($directories as $directory) { |
| 35 | - if (! is_dir($directory)) { |
|
| 35 | + if (!is_dir($directory)) { |
|
| 36 | 36 | throw new Console\Exception\InvalidArgumentException("'{$directory}' is no valid directory"); |
| 37 | 37 | } |
| 38 | 38 | |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | $migrationClassesCount = count($migrations); |
| 76 | 76 | $this->output->writeln("<info>✓ Found {$migrationClassesCount} valid migration classes</info>", OutputInterface::VERBOSITY_VERBOSE); |
| 77 | 77 | |
| 78 | - uasort($migrations, function (MongoDbMigrations\MigrationInterface $a, MongoDbMigrations\MigrationInterface $b) { |
|
| 78 | + uasort($migrations, function(MongoDbMigrations\MigrationInterface $a, MongoDbMigrations\MigrationInterface $b) { |
|
| 79 | 79 | if ($a->getCreateDate() === $b->getCreateDate()) { |
| 80 | 80 | return 0; |
| 81 | 81 | } |