Code Duplication    Length = 10-10 lines in 3 locations

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

@@ 361-370 (lines=10) @@
358
    /**
359
     * {@inheritdoc}
360
     */
361
    protected function getRenameTableInstructions($tableName, $newTableName)
362
    {
363
        $sql = sprintf(
364
            'RENAME TABLE %s TO %s',
365
            $this->quoteTableName($tableName),
366
            $this->quoteTableName($newTableName)
367
        );
368
369
        return new AlterInstructions([], [$sql]);
370
    }
371
372
    /**
373
     * {@inheritdoc}

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

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

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

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