Code Duplication    Length = 5-5 lines in 2 locations

src/Phinx/Db/Adapter/SQLiteAdapter.php 2 locations

@@ 351-355 (lines=5) @@
348
            $writeColumns[] = $this->quoteColumnName($writeName);
349
        }
350
351
        if (!in_array($this->quoteColumnName($columnName), $selectColumns)) {
352
            throw new \InvalidArgumentException(sprintf(
353
                'The specified column doesn\'t exist: ' . $columnName
354
            ));
355
        }
356
357
        $this->execute(sprintf('ALTER TABLE %s RENAME TO %s', $tableName, $tmpTableName));
358
@@ 406-410 (lines=5) @@
403
            $writeColumns[] = $this->quoteColumnName($writeName);
404
        }
405
406
        if (!in_array($this->quoteColumnName($columnName), $selectColumns)) {
407
            throw new \InvalidArgumentException(sprintf(
408
                'The specified column doesn\'t exist: ' . $columnName
409
            ));
410
        }
411
412
        $this->execute(sprintf('ALTER TABLE %s RENAME TO %s', $tableName, $tmpTableName));
413