Code Duplication    Length = 3-3 lines in 2 locations

Core/Executor/MigrationDefinitionExecutor.php 1 location

@@ 66-68 (lines=3) @@
63
            throw new \Exception("Invalid step definition: miss 'migration_mode'");
64
        }
65
        $migrationMode = $dsl['migration_mode'];
66
        if (!isset($dsl['match']) || !is_array($dsl['match'])) {
67
            throw new \Exception("Invalid step definition: miss 'match' to determine what to generate migration definition for");
68
        }
69
        $match = $dsl['match'];
70
71
        $executors = $this->getGeneratingExecutors();

Core/Executor/MigrationExecutor.php 1 location

@@ 112-114 (lines=3) @@
109
110
    protected function loadEntity($dsl, $context)
111
    {
112
        if (!isset($dsl['type']) || !isset($dsl['match'])) {
113
            throw new \Exception("A 'type' and a 'match' are required to load entities when suspending a migration");
114
        }
115
116
        $dsl['mode'] = 'load';
117
        // be kind to users and allow them not to specify this explicitly