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

@@ 319-328 (lines=10) @@
316
    /**
317
     * {@inheritdoc}
318
     */
319
    protected function getRenameTableInstructions($tableName, $newTableName)
320
    {
321
        $sql = sprintf(
322
            'RENAME TABLE %s TO %s',
323
            $this->quoteTableName($tableName),
324
            $this->quoteTableName($newTableName)
325
        );
326
327
        return new AlterInstructions([], [$sql]);
328
    }
329
330
    /**
331
     * {@inheritdoc}