Code Duplication    Length = 13-13 lines in 2 locations

core/vendor/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php 2 locations

@@ 535-547 (lines=13) @@
532
     *
533
     * @return $this This QueryBuilder instance.
534
     */
535
    public function delete($delete = null, $alias = null)
536
    {
537
        $this->type = self::DELETE;
538
539
        if ( ! $delete) {
540
            return $this;
541
        }
542
543
        return $this->add('from', [
544
            'table' => $delete,
545
            'alias' => $alias
546
        ]);
547
    }
548
549
    /**
550
     * Turns the query being built into a bulk update query that ranges over
@@ 565-577 (lines=13) @@
562
     *
563
     * @return $this This QueryBuilder instance.
564
     */
565
    public function update($update = null, $alias = null)
566
    {
567
        $this->type = self::UPDATE;
568
569
        if ( ! $update) {
570
            return $this;
571
        }
572
573
        return $this->add('from', [
574
            'table' => $update,
575
            'alias' => $alias
576
        ]);
577
    }
578
579
    /**
580
     * Turns the query being built into an insert query that inserts into