Code Duplication    Length = 3-3 lines in 2 locations

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;

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
}