Code Duplication    Length = 10-10 lines in 3 locations

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

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

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}