|
@@ -1,4 +1,4 @@ discard block |
|
|
block discarded – undo |
|
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 |
|
|
block discarded – undo |
|
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 |
|
|
block discarded – undo |
|
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
|
return $a->getCreateDate() <=> $b->getCreateDate(); |
|
80
|
80
|
}); |
|
81
|
81
|
|
Please login to merge, or discard this patch.