Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 839-843 (lines=5) @@
836
            $specialValue = $tsfe->page['uid'];
837
        }
838
        $items = GeneralUtility::intExplode(',', $specialValue);
839
        if (MathUtility::canBeInterpretedAsInteger($this->conf['special.']['depth'])) {
840
            $depth = MathUtility::forceIntegerInRange($this->conf['special.']['depth'], 1, 20);
841
        } else {
842
            $depth = 20;
843
        }
844
        // Max number of items
845
        $limit = MathUtility::forceIntegerInRange($this->conf['special.']['limit'], 0, 100);
846
        $maxAge = (int)$this->parent_cObj->calc($this->conf['special.']['maxAge']);
@@ 945-949 (lines=5) @@
942
                $sortField = 'SYS_LASTCHANGED';
943
        }
944
        // Depth, limit, extra where
945
        if (MathUtility::canBeInterpretedAsInteger($this->conf['special.']['depth'])) {
946
            $depth = MathUtility::forceIntegerInRange($this->conf['special.']['depth'], 0, 20);
947
        } else {
948
            $depth = 20;
949
        }
950
        // Max number of items
951
        $limit = MathUtility::forceIntegerInRange($this->conf['special.']['limit'], 0, 100);
952
        // Start point