Code Duplication    Length = 3-3 lines in 2 locations

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

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

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

@@ 544-546 (lines=3) @@
541
            $sql .= ' ORDER BY ' . $orderBySql;
542
        }
543
544
        if ($limit !== null || $offset !== null) {
545
            $sql = $this->platform->modifyLimitQuery($sql, $limit, $offset);
546
        }
547
548
        if ($lockMode === null || $lockMode === false || $lockMode === LockMode::NONE) {
549
            return $sql;