Code Duplication    Length = 4-4 lines in 2 locations

typo3/sysext/core/Classes/TypoScript/TemplateService.php 2 locations

@@ 1618-1621 (lines=4) @@
1615
                $next_MP_array = $MP_array;
1616
                $mount_info = $this->getTypoScriptFrontendController()->sys_page->getMountPointInfo($next_id, $row);
1617
                // Overlay mode:
1618
                if (is_array($mount_info) && $mount_info['overlay']) {
1619
                    $next_MP_array[] = $mount_info['MPvar'];
1620
                    $next_id = $mount_info['mount_pid'];
1621
                }
1622
                if (!isset($this->MPmap[$next_id])) {
1623
                    // Set mapping information for this level:
1624
                    $this->MPmap[$next_id] = $next_MP_array;
@@ 1626-1629 (lines=4) @@
1623
                    // Set mapping information for this level:
1624
                    $this->MPmap[$next_id] = $next_MP_array;
1625
                    // Normal mode:
1626
                    if (is_array($mount_info) && !$mount_info['overlay']) {
1627
                        $next_MP_array[] = $mount_info['MPvar'];
1628
                        $next_id = $mount_info['mount_pid'];
1629
                    }
1630
                    // Register recursive call
1631
                    // (have to do it this way since ALL of the current level should be registered BEFORE the sublevel at any time)
1632
                    $nextLevelAcc[] = [$next_id, $next_MP_array];