Code Duplication    Length = 12-12 lines in 2 locations

typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php 2 locations

@@ 1850-1861 (lines=12) @@
1847
     * @internal
1848
     * @see subMenu()
1849
     */
1850
    public function isNext($uid, $MPvar = '')
1851
    {
1852
        // Check for always active PIDs:
1853
        if (!empty($this->alwaysActivePIDlist) && in_array((int)$uid, $this->alwaysActivePIDlist, true)) {
1854
            return true;
1855
        }
1856
        $testUid = $uid . ($MPvar ? ':' . $MPvar : '');
1857
        if ($uid && $testUid == $this->nextActive) {
1858
            return true;
1859
        }
1860
        return false;
1861
    }
1862
1863
    /**
1864
     * Returns TRUE if the page with UID $uid is active (in the current rootline)
@@ 1871-1882 (lines=12) @@
1868
     * @return bool TRUE if page with $uid is active
1869
     * @internal
1870
     */
1871
    public function isActive($uid, $MPvar = '')
1872
    {
1873
        // Check for always active PIDs:
1874
        if (!empty($this->alwaysActivePIDlist) && in_array((int)$uid, $this->alwaysActivePIDlist, true)) {
1875
            return true;
1876
        }
1877
        $testUid = $uid . ($MPvar ? ':' . $MPvar : '');
1878
        if ($uid && in_array('ITEM:' . $testUid, $this->rL_uidRegister, true)) {
1879
            return true;
1880
        }
1881
        return false;
1882
    }
1883
1884
    /**
1885
     * Returns TRUE if the page with UID $uid is the CURRENT page (equals $this->getTypoScriptFrontendController()->id)