Code Duplication    Length = 10-16 lines in 2 locations

source/Spiral/Database/Builders/DeleteQuery.php 1 location

@@ 34-43 (lines=10) @@
31
    /**
32
     * {@inheritdoc}
33
     */
34
    public function getParameters(QueryCompiler $compiler = null)
35
    {
36
        if (empty($compiler)) {
37
            $compiler = $this->compiler;
38
        }
39
40
        return $this->flattenParameters($compiler->orderParameters(
41
            QueryCompiler::DELETE_QUERY, $this->whereParameters
42
        ));
43
    }
44
45
    /**
46
     * {@inheritdoc}

source/Spiral/Database/Builders/Prototypes/AbstractSelect.php 1 location

@@ 122-137 (lines=16) @@
119
    /**
120
     * {@inheritdoc}
121
     */
122
    public function getParameters(QueryCompiler $compiler = null)
123
    {
124
        if (empty($compiler)) {
125
            //Using associated compiler
126
            $compiler = $this->compiler;
127
        }
128
129
        return $this->flattenParameters(
130
            $compiler->orderParameters(
131
                QueryCompiler::SELECT_QUERY,
132
                $this->whereParameters,
133
                $this->onParameters,
134
                $this->havingParameters
135
            )
136
        );
137
    }
138
139
    /**
140
     * Mark query to return only distinct results.