Code Duplication    Length = 9-9 lines in 2 locations

src/Query/UpdateQuery.php 1 location

@@ 42-50 (lines=9) @@
39
        return $this;
40
    }
41
42
    public function asExpression(): ExpressionInterface
43
    {
44
        $query = $this->startExpression();
45
        $query = $this->applyTable($query);
46
        $query = $this->applySet($query);
47
        $query = $this->applyWhere($query);
48
49
        return $query;
50
    }
51
52
    protected function startExpression(): ExpressionInterface
53
    {

src/Query/DeleteQuery.php 1 location

@@ 16-24 (lines=9) @@
13
    use Capability\HasWhere;
14
    use Capability\HasLimit;
15
16
    public function asExpression(): ExpressionInterface
17
    {
18
        $query = $this->startExpression();
19
        $query = $this->applyFrom($query);
20
        $query = $this->applyWhere($query);
21
        $query = $this->applyLimit($query);
22
23
        return $query;
24
    }
25
26
    protected function startExpression(): ExpressionInterface
27
    {