Code Duplication    Length = 7-8 lines in 4 locations

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

@@ 221-227 (lines=7) @@
218
     *
219
     * @return InsertQuery
220
     */
221
    public function insertBuilder(string $prefix, array $parameters = []): InsertQuery
222
    {
223
        return $this->factory->make(
224
            InsertQuery::class,
225
            ['driver' => $this, 'compiler' => $this->queryCompiler($prefix)] + $parameters
226
        );
227
    }
228
229
    /**
230
     * Get SelectQuery builder with driver specific query compiler.
@@ 238-244 (lines=7) @@
235
     *
236
     * @return SelectQuery
237
     */
238
    public function selectBuilder(string $prefix, array $parameters = []): SelectQuery
239
    {
240
        return $this->factory->make(
241
            SelectQuery::class,
242
            ['driver' => $this, 'compiler' => $this->queryCompiler($prefix)] + $parameters
243
        );
244
    }
245
246
    /**
247
     * Get DeleteQuery builder with driver specific query compiler.
@@ 255-262 (lines=8) @@
252
     *
253
     * @return DeleteQuery
254
     */
255
    public function deleteBuilder(string $prefix, array $parameters = []): DeleteQuery
256
    {
257
258
        return $this->factory->make(
259
            DeleteQuery::class,
260
            ['driver' => $this, 'compiler' => $this->queryCompiler($prefix)] + $parameters
261
        );
262
    }
263
264
    /**
265
     * Get UpdateQuery builder with driver specific query compiler.
@@ 273-279 (lines=7) @@
270
     *
271
     * @return UpdateQuery
272
     */
273
    public function updateBuilder(string $prefix, array $parameters = []): UpdateQuery
274
    {
275
        return $this->factory->make(
276
            UpdateQuery::class,
277
            ['driver' => $this, 'compiler' => $this->queryCompiler($prefix)] + $parameters
278
        );
279
    }
280
}
281