Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 1751-1758 (lines=8) @@
1748
     * @param string $documentName
1749
     * @return $this
1750
     */
1751
    public function updateOne($documentName = null)
1752
    {
1753
        $this->setDocumentName($documentName);
1754
        $this->query['type'] = Query::TYPE_UPDATE;
1755
        $this->query['multiple'] = false;
1756
1757
        return $this;
1758
    }
1759
1760
    /**
1761
     * @param string $documentName
@@ 1764-1771 (lines=8) @@
1761
     * @param string $documentName
1762
     * @return $this
1763
     */
1764
    public function updateMany($documentName = null)
1765
    {
1766
        $this->setDocumentName($documentName);
1767
        $this->query['type'] = Query::TYPE_UPDATE;
1768
        $this->query['multiple'] = true;
1769
1770
        return $this;
1771
    }
1772
1773
    /**
1774
     * Set the "upsert" option for an update or findAndUpdate query.