Code Duplication    Length = 10-10 lines in 3 locations

src/Phinx/Db/Adapter/PostgresAdapter.php 1 location

@@ 333-342 (lines=10) @@
330
    /**
331
     * {@inheritdoc}
332
     */
333
    protected function getRenameTableInstructions($tableName, $newTableName)
334
    {
335
        $sql = sprintf(
336
            'ALTER TABLE %s RENAME TO %s',
337
            $this->quoteTableName($tableName),
338
            $this->quoteColumnName($newTableName)
339
        );
340
341
        return new AlterInstructions([], [$sql]);
342
    }
343
344
    /**
345
     * {@inheritdoc}

src/Phinx/Db/Adapter/MysqlAdapter.php 1 location

@@ 355-364 (lines=10) @@
352
    /**
353
     * {@inheritdoc}
354
     */
355
    protected function getRenameTableInstructions($tableName, $newTableName)
356
    {
357
        $sql = sprintf(
358
            'RENAME TABLE %s TO %s',
359
            $this->quoteTableName($tableName),
360
            $this->quoteTableName($newTableName)
361
        );
362
363
        return new AlterInstructions([], [$sql]);
364
    }
365
366
    /**
367
     * {@inheritdoc}

src/Phinx/Db/Adapter/SQLiteAdapter.php 1 location

@@ 449-458 (lines=10) @@
446
    /**
447
     * {@inheritdoc}
448
     */
449
    protected function getRenameTableInstructions($tableName, $newTableName)
450
    {
451
        $sql = sprintf(
452
            'ALTER TABLE %s RENAME TO %s',
453
            $this->quoteTableName($tableName),
454
            $this->quoteTableName($newTableName)
455
        );
456
457
        return new AlterInstructions([], [$sql]);
458
    }
459
460
    /**
461
     * {@inheritdoc}