Code Duplication    Length = 8-13 lines in 3 locations

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

@@ 41-48 (lines=8) @@
38
    /**
39
     * {@inheritdoc}
40
     */
41
    public function getParameters(QueryCompiler $compiler = null): array
42
    {
43
        $compiler = $compiler ?? $this->compiler;
44
45
        return $this->flattenParameters(
46
            $compiler->orderParameters(self::QUERY_TYPE, $this->whereParameters)
47
        );
48
    }
49
50
    /**
51
     * {@inheritdoc}

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

@@ 142-149 (lines=8) @@
139
    /**
140
     * {@inheritdoc}
141
     */
142
    public function getParameters(QueryCompiler $compiler = null): array
143
    {
144
        $compiler = $compiler ?? $this->compiler;
145
146
        return $this->flattenParameters(
147
            $compiler->orderParameters(self::QUERY_TYPE, [], [], [], $this->rowsets)
148
        );
149
    }
150
151
    /**
152
     * {@inheritdoc}

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

@@ 128-140 (lines=13) @@
125
    /**
126
     * {@inheritdoc}
127
     */
128
    public function getParameters(QueryCompiler $compiler = null): array
129
    {
130
        $compiler = $compiler ?? $this->compiler;
131
132
        return $this->flattenParameters(
133
            $compiler->orderParameters(
134
                self::QUERY_TYPE,
135
                $this->whereParameters,
136
                $this->onParameters,
137
                $this->havingParameters
138
            )
139
        );
140
    }
141
142
    /**
143
     * Mark query to return only distinct results.