Code Duplication    Length = 10-10 lines in 2 locations

lib/Doctrine/ORM/QueryBuilder.php 2 locations

@@ 819-828 (lines=10) @@
816
     *
817
     * @return self
818
     */
819
    public function delete($delete = null, $alias = null)
820
    {
821
        $this->_type = self::DELETE;
822
823
        if ( ! $delete) {
824
            return $this;
825
        }
826
827
        return $this->add('from', new Expr\From($delete, $alias));
828
    }
829
830
    /**
831
     * Turns the query being built into a bulk update query that ranges over
@@ 846-855 (lines=10) @@
843
     *
844
     * @return self
845
     */
846
    public function update($update = null, $alias = null)
847
    {
848
        $this->_type = self::UPDATE;
849
850
        if ( ! $update) {
851
            return $this;
852
        }
853
854
        return $this->add('from', new Expr\From($update, $alias));
855
    }
856
857
    /**
858
     * Creates and adds a query root corresponding to the entity identified by the given alias,