Code Duplication    Length = 3-3 lines in 2 locations

lib/Doctrine/ORM/Persisters/Collection/ManyToManyPersister.php 1 location

@@ 781-783 (lines=3) @@
778
    {
779
        $limit  = $criteria->getMaxResults();
780
        $offset = $criteria->getFirstResult();
781
        if ($limit !== null || $offset !== null) {
782
            return $this->platform->modifyLimitQuery('', $limit, $offset);
783
        }
784
        return '';
785
    }
786
}

lib/Doctrine/ORM/Query/SqlWalker.php 1 location

@@ 553-555 (lines=3) @@
550
            $sql .= ' ORDER BY ' . $orderBySql;
551
        }
552
553
        if ($limit !== null || $offset !== null) {
554
            $sql = $this->platform->modifyLimitQuery($sql, $limit, $offset);
555
        }
556
557
        if ($lockMode === null || $lockMode === false || $lockMode === LockMode::NONE) {
558
            return $sql;