Code Duplication    Length = 13-13 lines in 2 locations

src/Database/Query.php 2 locations

@@ 1484-1496 (lines=13) @@
1481
     * @param bool $overwrite whether to reset the list of queries to be operated or not
1482
     * @return $this
1483
     */
1484
    public function union($query, $overwrite = false)
1485
    {
1486
        if ($overwrite) {
1487
            $this->_parts['union'] = [];
1488
        }
1489
        $this->_parts['union'][] = [
1490
            'all' => false,
1491
            'query' => $query,
1492
        ];
1493
        $this->_dirty();
1494
1495
        return $this;
1496
    }
1497
1498
    /**
1499
     * Adds a complete query to be used in conjunction with the UNION ALL operator with
@@ 1519-1531 (lines=13) @@
1516
     * @param bool $overwrite whether to reset the list of queries to be operated or not
1517
     * @return $this
1518
     */
1519
    public function unionAll($query, $overwrite = false)
1520
    {
1521
        if ($overwrite) {
1522
            $this->_parts['union'] = [];
1523
        }
1524
        $this->_parts['union'][] = [
1525
            'all' => true,
1526
            'query' => $query,
1527
        ];
1528
        $this->_dirty();
1529
1530
        return $this;
1531
    }
1532
1533
    /**
1534
     * Create an insert query.