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

@@ 145-156 (lines=12) @@
142
     * @todo cache this for faster access
143
     * @return array
144
     */
145
    protected function getGeneratingExecutors()
146
    {
147
        $migrationService = $this->migrationService;
148
        $executors = $migrationService->listExecutors();
149
        foreach($executors as $key => $name) {
150
            $executor = $migrationService->getExecutor($name);
151
            if (!$executor instanceof MigrationGeneratorInterface) {
152
                unset($executors[$key]);
153
            }
154
        }
155
        return $executors;
156
    }
157
}
158