Skip to content

Commit

Permalink
[2775] Change get method for migrate:setup command (#2779)
Browse files Browse the repository at this point in the history
  • Loading branch information
langelhc authored and enzolutions committed Oct 11, 2016
1 parent 64f84ca commit 402e6fe
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Command/Shared/MigrationTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,16 @@ trait MigrationTrait
protected function getMigrations($version_tag = false, $flatList = false)
{
$all_migrations = $this->pluginManagerMigration->createInstancesByTag($version_tag);

$migrations = array();
foreach ($all_migrations as $migration) {
if ($flatList) {
$migrations[$migration->id()] = ucwords($migration->label());
} else {
$migrations[$migration->id()]['tags'] = implode(', ', $migration->migration_tags);
$migrations[$migration->id()]['tags'] = implode(', ', $migration->getMigrationTags());
$migrations[$migration->id()]['description'] = ucwords($migration->label());
}
}

return $migrations;
}

Expand Down

0 comments on commit 402e6fe

Please sign in to comment.