Code Duplication    Length = 10-10 lines in 3 locations

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

@@ 270-279 (lines=10) @@
267
    /**
268
     * {@inheritdoc}
269
     */
270
    protected function getRenameTableInstructions($tableName, $newTableName)
271
    {
272
        $sql = sprintf(
273
            'ALTER TABLE %s RENAME TO %s',
274
            $this->quoteTableName($tableName),
275
            $this->quoteColumnName($newTableName)
276
        );
277
278
        return new AlterInstructions([], [$sql]);
279
    }
280
281
    /**
282
     * {@inheritdoc}

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

@@ 234-243 (lines=10) @@
231
    /**
232
     * {@inheritdoc}
233
     */
234
    protected function getRenameTableInstructions($tableName, $newTableName)
235
    {
236
        $sql = sprintf(
237
            'ALTER TABLE %s RENAME TO %s',
238
            $this->quoteTableName($tableName),
239
            $this->quoteTableName($newTableName)
240
        );
241
242
        return new AlterInstructions([], [$sql]);
243
    }
244
245
    /**
246
     * {@inheritdoc}

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

@@ 304-313 (lines=10) @@
301
    /**
302
     * {@inheritdoc}
303
     */
304
    protected function getRenameTableInstructions($tableName, $newTableName)
305
    {
306
        $sql = sprintf(
307
            'RENAME TABLE %s TO %s',
308
            $this->quoteTableName($tableName),
309
            $this->quoteTableName($newTableName)
310
        );
311
312
        return new AlterInstructions([], [ $sql ]);
313
    }
314
315
    /**
316
     * {@inheritdoc}