Code Duplication    Length = 14-16 lines in 2 locations

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

@@ 469-484 (lines=16) @@
466
                        }
467
                    }
468
                    // DB oriented soft references in flex form fields:
469
                    if (is_array($vR['flexFormRels']['softrefs'])) {
470
                        foreach ($vR['flexFormRels']['softrefs'] as $subList) {
471
                            foreach ($subList['keys'] as $spKey => $elements) {
472
                                foreach ($elements as $el) {
473
                                    if ($el['subst']['type'] === 'db' && $this->includeSoftref($el['subst']['tokenID'])) {
474
                                        list($tempTable, $tempUid) = explode(':', $el['subst']['recordRef']);
475
                                        $fI = [
476
                                            'table' => $tempTable,
477
                                            'id' => $tempUid
478
                                        ];
479
                                        $this->export_addDBRelations_registerRelation($fI, $addR, $el['subst']['tokenID']);
480
                                    }
481
                                }
482
                            }
483
                        }
484
                    }
485
                }
486
                // In any case, if there are soft refs:
487
                if (is_array($vR['softrefs']['keys'])) {
@@ 487-500 (lines=14) @@
484
                    }
485
                }
486
                // In any case, if there are soft refs:
487
                if (is_array($vR['softrefs']['keys'])) {
488
                    foreach ($vR['softrefs']['keys'] as $spKey => $elements) {
489
                        foreach ($elements as $el) {
490
                            if ($el['subst']['type'] === 'db' && $this->includeSoftref($el['subst']['tokenID'])) {
491
                                list($tempTable, $tempUid) = explode(':', $el['subst']['recordRef']);
492
                                $fI = [
493
                                    'table' => $tempTable,
494
                                    'id' => $tempUid
495
                                ];
496
                                $this->export_addDBRelations_registerRelation($fI, $addR, $el['subst']['tokenID']);
497
                            }
498
                        }
499
                    }
500
                }
501
            }
502
        }
503