Code Duplication    Length = 12-12 lines in 2 locations

Command/GenerateCommand.php 1 location

@@ 303-314 (lines=12) @@
300
    }
301
302
    /// @todo move somewhere else. Maybe to the MigrationService itself ?
303
    protected function getGeneratingExecutors()
304
    {
305
        $migrationService = $this->getMigrationService();
306
        $executors = $migrationService->listExecutors();
307
        foreach($executors as $key => $name) {
308
            $executor = $migrationService->getExecutor($name);
309
            if (!$executor instanceof MigrationGeneratorInterface) {
310
                unset($executors[$key]);
311
            }
312
        }
313
        return $executors;
314
    }
315
}
316

Core/Executor/MigrationDefinitionExecutor.php 1 location

@@ 117-128 (lines=12) @@
114
     * @todo cache this for faster access
115
     * @return array
116
     */
117
    protected function getGeneratingExecutors()
118
    {
119
        $migrationService = $this->migrationService;
120
        $executors = $migrationService->listExecutors();
121
        foreach($executors as $key => $name) {
122
            $executor = $migrationService->getExecutor($name);
123
            if (!$executor instanceof MigrationGeneratorInterface) {
124
                unset($executors[$key]);
125
            }
126
        }
127
        return $executors;
128
    }
129
}
130