Code Duplication    Length = 17-17 lines in 2 locations

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

@@ 860-876 (lines=17) @@
857
        }
858
        $id_list = implode(',', $id_list_arr);
859
        // Get sortField (mode)
860
        switch ($mode) {
861
            case 'starttime':
862
                $sortField = 'starttime';
863
                break;
864
            case 'lastUpdated':
865
            case 'manual':
866
                $sortField = 'lastUpdated';
867
                break;
868
            case 'tstamp':
869
                $sortField = 'tstamp';
870
                break;
871
            case 'crdate':
872
                $sortField = 'crdate';
873
                break;
874
            default:
875
                $sortField = 'SYS_LASTCHANGED';
876
        }
877
        $extraWhere = ($this->conf['includeNotInMenu'] ? '' : ' AND pages.nav_hide=0') . $this->getDoktypeExcludeWhere();
878
        if ($this->conf['special.']['excludeNoSearchPages']) {
879
            $extraWhere .= ' AND pages.no_search=0';
@@ 927-943 (lines=17) @@
924
        }
925
        // *'auto', 'manual', 'tstamp'
926
        $mode = $this->conf['special.']['mode'];
927
        switch ($mode) {
928
            case 'starttime':
929
                $sortField = 'starttime';
930
                break;
931
            case 'lastUpdated':
932
            case 'manual':
933
                $sortField = 'lastUpdated';
934
                break;
935
            case 'tstamp':
936
                $sortField = 'tstamp';
937
                break;
938
            case 'crdate':
939
                $sortField = 'crdate';
940
                break;
941
            default:
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);