Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 1792-1799 (lines=8) @@
1789
     * @param string $documentName
1790
     * @return $this
1791
     */
1792
    public function updateOne($documentName = null)
1793
    {
1794
        $this->setDocumentName($documentName);
1795
        $this->query['type'] = Query::TYPE_UPDATE;
1796
        $this->query['multiple'] = false;
1797
1798
        return $this;
1799
    }
1800
1801
    /**
1802
     * @param string $documentName
@@ 1805-1812 (lines=8) @@
1802
     * @param string $documentName
1803
     * @return $this
1804
     */
1805
    public function updateMany($documentName = null)
1806
    {
1807
        $this->setDocumentName($documentName);
1808
        $this->query['type'] = Query::TYPE_UPDATE;
1809
        $this->query['multiple'] = true;
1810
1811
        return $this;
1812
    }
1813
1814
    /**
1815
     * Set the "upsert" option for an update or findAndUpdate query.