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

@@ 293-302 (lines=10) @@
290
	/**
291
	 * {@inheritdoc}
292
	 */
293
	protected function getRenameTableInstructions( $tableName, $newTableName ) {
294
		$sql = sprintf(
295
			'RENAME TABLE %s TO %s',
296
			$this->quoteTableName( $tableName ),
297
			$this->quoteTableName( $newTableName )
298
		);
299
300
		return new AlterInstructions( [], [ $sql ] );
301
	}
302
303
	/**
304
	 * {@inheritdoc}
305
	 */