Code Duplication    Length = 3-3 lines in 2 locations

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

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

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

@@ 875-877 (lines=3) @@
872
    {
873
        $limit  = $criteria->getMaxResults();
874
        $offset = $criteria->getFirstResult();
875
        if ($limit !== null || $offset !== null) {
876
            return $this->platform->modifyLimitQuery('', $limit, $offset);
877
        }
878
        return '';
879
    }
880
}