Code Duplication    Length = 4-5 lines in 2 locations

Classes/IndexQueue/Indexer.php 1 location

@@ 222-226 (lines=5) @@
219
         * is hidden but a certain translation isn't. Then the default language
220
         * document appears here but must not be indexed.
221
         */
222
        if (!empty($GLOBALS['TCA'][$item->getType()]['ctrl']['enablecolumns']['disabled'])
223
            && $itemRecord[$GLOBALS['TCA'][$item->getType()]['ctrl']['enablecolumns']['disabled']]
224
        ) {
225
            $itemRecord = null;
226
        }
227
228
        /*
229
         * Skip translation mismatching records. Sometimes the requested language

Classes/IndexQueue/Queue.php 1 location

@@ 402-405 (lines=4) @@
399
        $startTime = 0;
400
        $pageChangedTime = 0;
401
402
        if (!empty($GLOBALS['TCA'][$itemType]['ctrl']['enablecolumns']['starttime'])) {
403
            $itemTypeHasStartTimeColumn = true;
404
            $changedTimeColumns .= ', ' . $GLOBALS['TCA'][$itemType]['ctrl']['enablecolumns']['starttime'];
405
        }
406
        if ($itemType == 'pages') {
407
            // does not carry time information directly, but needed to support
408
            // canonical pages