Code Duplication    Length = 3-3 lines in 2 locations

Command/MassMigrateCommand.php 1 location

@@ 350-352 (lines=3) @@
347
        // filter away all migrations except 'to do' ones
348
        $toExecute = array();
349
        foreach($migrationDefinitions as $name => $migrationDefinition) {
350
            if (!isset($migrations[$name]) || (($migration = $migrations[$name]) && $migration->status == Migration::STATUS_TODO)) {
351
                $toExecute[$name] = $isChild ? $migrationService->parseMigrationDefinition($migrationDefinition) : $migrationDefinition;
352
            }
353
            // save the list of non-executable migrations as well
354
            if (!$isChild && isset($migrations[$name]) && (($migration = $migrations[$name]) && $migration->status != Migration::STATUS_TODO)) {
355
                $this->migrationsAlreadyDone[$migration->status]++;

Command/MigrateCommand.php 1 location

@@ 257-259 (lines=3) @@
254
        // filter away all migrations except 'to do' ones
255
        $toExecute = array();
256
        foreach ($migrationDefinitions as $name => $migrationDefinition) {
257
            if (!isset($migrations[$name]) || (($migration = $migrations[$name]) && $migration->status == Migration::STATUS_TODO)) {
258
                $toExecute[$name] = $migrationService->parseMigrationDefinition($migrationDefinition);
259
            }
260
        }
261
262
        // if user wants to execute 'all' migrations: look for some which are registered in the database even if not