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

@@ 104-116 (lines=13) @@
101
    /**
102
     * {@inheritdoc}
103
     */
104
    public function getParameters(QueryCompiler $compiler = null): array
105
    {
106
        $compiler = $compiler ?? $this->compiler;
107
108
        return $this->flattenParameters(
109
            $compiler->orderParameters(
110
                self::QUERY_TYPE,
111
                $this->whereParameters,
112
                $this->onParameters,
113
                $this->havingParameters
114
            )
115
        );
116
    }
117
118
    /**
119
     * Mark query to return only distinct results.