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

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