Code Duplication    Length = 10-10 lines in 3 locations

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}

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

@@ 254-263 (lines=10) @@
251
    /**
252
     * {@inheritdoc}
253
     */
254
    protected function getRenameTableInstructions($tableName, $newTableName)
255
    {
256
        $sql = sprintf(
257
            'ALTER TABLE %s RENAME TO %s',
258
            $this->quoteTableName($tableName),
259
            $this->quoteTableName($newTableName)
260
        );
261
262
        return new AlterInstructions([], [$sql]);
263
    }
264
265
    /**
266
     * {@inheritdoc}