Code Duplication    Length = 8-8 lines in 2 locations

lib/Doctrine/ODM/MongoDB/Query/Builder.php 2 locations

@@ 1809-1816 (lines=8) @@
1806
     * @param string $documentName
1807
     * @return $this
1808
     */
1809
    public function updateOne($documentName = null)
1810
    {
1811
        $this->setDocumentName($documentName);
1812
        $this->query['type'] = Query::TYPE_UPDATE;
1813
        $this->query['multiple'] = false;
1814
1815
        return $this;
1816
    }
1817
1818
    /**
1819
     * @param string $documentName
@@ 1822-1829 (lines=8) @@
1819
     * @param string $documentName
1820
     * @return $this
1821
     */
1822
    public function updateMany($documentName = null)
1823
    {
1824
        $this->setDocumentName($documentName);
1825
        $this->query['type'] = Query::TYPE_UPDATE;
1826
        $this->query['multiple'] = true;
1827
1828
        return $this;
1829
    }
1830
1831
    /**
1832
     * Set the "upsert" option for an update or findAndUpdate query.