Code Duplication    Length = 12-13 lines in 2 locations

Classes/IndexQueue/Queue.php 2 locations

@@ 503-514 (lines=12) @@
500
     *      different value for non-database-record types.
501
     * @return boolean TRUE if the item is found in the queue, FALSE otherwise
502
     */
503
    public function containsItem($itemType, $itemUid)
504
    {
505
        $itemIsInQueue = (boolean)$GLOBALS['TYPO3_DB']->exec_SELECTcountRows(
506
            'uid',
507
            'tx_solr_indexqueue_item',
508
            'item_type = ' . $GLOBALS['TYPO3_DB']->fullQuoteStr($itemType,
509
                'tx_solr_indexqueue_item') .
510
            ' AND item_uid = ' . (int)$itemUid
511
        );
512
513
        return $itemIsInQueue;
514
    }
515
516
    /**
517
     * Checks whether the Index Queue contains a specific item that has been
@@ 526-538 (lines=13) @@
523
     * @return boolean TRUE if the item is found in the queue and marked as
524
     *      indexed, FALSE otherwise
525
     */
526
    public function containsIndexedItem($itemType, $itemUid)
527
    {
528
        $itemIsInQueue = (boolean)$GLOBALS['TYPO3_DB']->exec_SELECTcountRows(
529
            'uid',
530
            'tx_solr_indexqueue_item',
531
            'item_type = ' . $GLOBALS['TYPO3_DB']->fullQuoteStr($itemType,
532
                'tx_solr_indexqueue_item') .
533
            ' AND item_uid = ' . (int)$itemUid .
534
            ' AND indexed > 0'
535
        );
536
537
        return $itemIsInQueue;
538
    }
539
540
    /**
541
     * Removes an item from the Index Queue.