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

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