Code Duplication    Length = 10-10 lines in 3 locations

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

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

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

@@ 294-303 (lines=10) @@
291
    /**
292
     * {@inheritdoc}
293
     */
294
    protected function getRenameTableInstructions($tableName, $newTableName)
295
    {
296
        $sql = sprintf(
297
            'ALTER TABLE %s RENAME TO %s',
298
            $this->quoteTableName($tableName),
299
            $this->quoteTableName($newTableName)
300
        );
301
302
        return new AlterInstructions([], [$sql]);
303
    }
304
305
    /**
306
     * {@inheritdoc}

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

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