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

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