Code Duplication    Length = 7-7 lines in 4 locations

source/Spiral/Database/Entities/Driver.php 4 locations

@@ 141-147 (lines=7) @@
138
     *
139
     * @return InsertQuery
140
     */
141
    public function insertBuilder(string $prefix, array $parameters = []): InsertQuery
142
    {
143
        return $this->getFactory()->make(
144
            InsertQuery::class,
145
            ['driver' => $this, 'compiler' => $this->queryCompiler($prefix)] + $parameters
146
        );
147
    }
148
149
    /**
150
     * Get SelectQuery builder with driver specific query compiler.
@@ 158-164 (lines=7) @@
155
     *
156
     * @return SelectQuery
157
     */
158
    public function selectBuilder(string $prefix, array $parameters = []): SelectQuery
159
    {
160
        return $this->getFactory()->make(
161
            SelectQuery::class,
162
            ['driver' => $this, 'compiler' => $this->queryCompiler($prefix)] + $parameters
163
        );
164
    }
165
166
    /**
167
     * Get DeleteQuery builder with driver specific query compiler.
@@ 175-181 (lines=7) @@
172
     *
173
     * @return DeleteQuery
174
     */
175
    public function deleteBuilder(string $prefix, array $parameters = []): DeleteQuery
176
    {
177
        return $this->getFactory()->make(
178
            DeleteQuery::class,
179
            ['driver' => $this, 'compiler' => $this->queryCompiler($prefix)] + $parameters
180
        );
181
    }
182
183
    /**
184
     * Get UpdateQuery builder with driver specific query compiler.
@@ 192-198 (lines=7) @@
189
     *
190
     * @return UpdateQuery
191
     */
192
    public function updateBuilder(string $prefix, array $parameters = []): UpdateQuery
193
    {
194
        return $this->getFactory()->make(
195
            UpdateQuery::class,
196
            ['driver' => $this, 'compiler' => $this->queryCompiler($prefix)] + $parameters
197
        );
198
    }
199
200
    /**
201
     * Handler responsible for schema related operations. Handlers responsible for sync flow of