Code Duplication    Length = 9-9 lines in 2 locations

typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php 2 locations

@@ 1436-1444 (lines=9) @@
1433
                }
1434
            }
1435
            // If still no page...
1436
            if (empty($this->page)) {
1437
                $message = 'The requested page does not exist!';
1438
                if ($GLOBALS['TYPO3_CONF_VARS']['FE']['pageNotFound_handling']) {
1439
                    $this->pageNotFoundAndExit($message);
1440
                } else {
1441
                    $this->logger->error($message);
1442
                    throw new PageNotFoundException($message, 1301648780);
1443
                }
1444
            }
1445
        }
1446
        // Spacer is not accessible in frontend
1447
        if ($this->page['doktype'] == PageRepository::DOKTYPE_SPACER) {
@@ 1447-1455 (lines=9) @@
1444
            }
1445
        }
1446
        // Spacer is not accessible in frontend
1447
        if ($this->page['doktype'] == PageRepository::DOKTYPE_SPACER) {
1448
            $message = 'The requested page does not exist!';
1449
            if ($GLOBALS['TYPO3_CONF_VARS']['FE']['pageNotFound_handling']) {
1450
                $this->pageNotFoundAndExit($message);
1451
            } else {
1452
                $this->logger->error($message);
1453
                throw new PageNotFoundException($message, 1301648781);
1454
            }
1455
        }
1456
        // Is the ID a link to another page??
1457
        if ($this->page['doktype'] == PageRepository::DOKTYPE_SHORTCUT) {
1458
            // We need to clear MP if the page is a shortcut. Reason is if the short cut goes to another page, then we LEAVE the rootline which the MP expects.