Code Duplication    Length = 3-3 lines in 2 locations

Command/GenerateCommand.php 1 location

@@ 245-247 (lines=3) @@
242
                $executor = $this->getMigrationService()->getExecutor($migrationType);
243
244
                $context = array();
245
                if (isset($parameters['lang']) && $parameters['lang'] != '') {
246
                    $context['defaultLanguageCode'] = $parameters['lang'];
247
                }
248
249
                $matchCondition = array($parameters['matchType'] => $parameters['matchValue']);
250
                if ($parameters['matchExcept']) {

Core/Executor/MigrationDefinitionExecutor.php 1 location

@@ 78-80 (lines=3) @@
75
        $executor = $this->migrationService->getExecutor($migrationType);
76
77
        $context = array();
78
        if (isset($dsl['lang']) && $dsl['lang'] != '') {
79
            $context['defaultLanguageCode'] = $dsl['lang'];
80
        }
81
82
        $matchCondition = array($match['type'] => $match['value']);
83
        if (isset($match['except']) && $match['except']) {