Code Duplication    Length = 7-7 lines in 2 locations

typo3/sysext/impexp/Classes/Export.php 2 locations

@@ 364-370 (lines=7) @@
361
    {
362
        foreach ($relations as $field => $relation) {
363
            if (isset($relation['type']) && $relation['type'] === 'file') {
364
                foreach ($relation['newValueFiles'] as $key => $fileRelationData) {
365
                    $absoluteFilePath = $fileRelationData['ID_absFile'];
366
                    if (GeneralUtility::isFirstPartOfStr($absoluteFilePath, PATH_site)) {
367
                        $relatedFilePath = PathUtility::stripPathSitePrefix($absoluteFilePath);
368
                        $relations[$field]['newValueFiles'][$key]['ID'] = md5($relatedFilePath);
369
                    }
370
                }
371
            }
372
            if ($relation['type'] === 'flex') {
373
                if (is_array($relation['flexFormRels']['file'])) {
@@ 375-381 (lines=7) @@
372
            if ($relation['type'] === 'flex') {
373
                if (is_array($relation['flexFormRels']['file'])) {
374
                    foreach ($relation['flexFormRels']['file'] as $key => $subList) {
375
                        foreach ($subList as $subKey => $fileRelationData) {
376
                            $absoluteFilePath = $fileRelationData['ID_absFile'];
377
                            if (GeneralUtility::isFirstPartOfStr($absoluteFilePath, PATH_site)) {
378
                                $relatedFilePath = PathUtility::stripPathSitePrefix($absoluteFilePath);
379
                                $relations[$field]['flexFormRels']['file'][$key][$subKey]['ID'] = md5($relatedFilePath);
380
                            }
381
                        }
382
                    }
383
                }
384
            }