Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 370-379 (lines=10) @@
367
            // Add this page:
368
            $this->singleRecordLines('pages', $k, $lines, $preCode);
369
            // Subrecords:
370
            if (is_array($this->dat['header']['pid_lookup'][$k])) {
371
                foreach ($this->dat['header']['pid_lookup'][$k] as $t => $recUidArr) {
372
                    if ($t !== 'pages') {
373
                        foreach ($recUidArr as $ruid => $value) {
374
                            $this->singleRecordLines($t, $ruid, $lines, $preCode . '    ');
375
                        }
376
                    }
377
                }
378
                unset($this->remainHeader['pid_lookup'][$k]);
379
            }
380
            // Subpages, called recursively:
381
            if (is_array($v['subrow'])) {
382
                $this->traversePageTree($v['subrow'], $lines, $preCode . '    ');
@@ 444-453 (lines=10) @@
441
        foreach ($pT as $k => $rHeader) {
442
            $this->singleRecordLines('pages', $k, $lines, '', 1);
443
            // Subrecords:
444
            if (is_array($this->dat['header']['pid_lookup'][$k])) {
445
                foreach ($this->dat['header']['pid_lookup'][$k] as $t => $recUidArr) {
446
                    if ($t !== 'pages') {
447
                        foreach ($recUidArr as $ruid => $value) {
448
                            $this->singleRecordLines($t, $ruid, $lines, '    ');
449
                        }
450
                    }
451
                }
452
                unset($this->remainHeader['pid_lookup'][$k]);
453
            }
454
        }
455
    }
456