Code Duplication    Length = 10-10 lines in 3 locations

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

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

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

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

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

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