Code Duplication    Length = 9-11 lines in 2 locations

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

@@ 1321-1331 (lines=11) @@
1318
            } else {
1319
                // Find the first 'visible' page in that domain
1320
                $theFirstPage = $this->sys_page->getFirstWebPage($this->id);
1321
                if ($theFirstPage) {
1322
                    $this->id = $theFirstPage['uid'];
1323
                } else {
1324
                    $message = 'No pages are found on the rootlevel!';
1325
                    if ($this->checkPageUnavailableHandler()) {
1326
                        $this->pageUnavailableAndExit($message);
1327
                    } else {
1328
                        $this->logger->alert($message);
1329
                        throw new ServiceUnavailableException($message, 1301648975);
1330
                    }
1331
                }
1332
            }
1333
        }
1334
        $timeTracker->pull();
@@ 1485-1493 (lines=9) @@
1482
        // Gets the rootLine
1483
        $this->rootLine = $this->sys_page->getRootLine($this->id, $this->MP);
1484
        // If not rootline we're off...
1485
        if (empty($this->rootLine)) {
1486
            $message = 'The requested page didn\'t have a proper connection to the tree-root!';
1487
            if ($this->checkPageUnavailableHandler()) {
1488
                $this->pageUnavailableAndExit($message);
1489
            } else {
1490
                $this->logger->error($message);
1491
                throw new ServiceUnavailableException($message, 1301648167);
1492
            }
1493
        }
1494
        // Checking for include section regarding the hidden/starttime/endtime/fe_user (that is access control of a whole subbranch!)
1495
        if ($this->checkRootlineForIncludeSection()) {
1496
            if (empty($this->rootLine)) {