Code Duplication    Length = 10-10 lines in 2 locations

lib/Doctrine/DBAL/Platforms/OraclePlatform.php 1 location

@@ 839-848 (lines=10) @@
836
            $sql[] = 'ALTER TABLE ' . $diff->getName($this)->getQuotedName($this) . ' MODIFY (' . implode(', ', $fields) . ')';
837
        }
838
839
        foreach ($diff->renamedColumns as $oldColumnName => $column) {
840
            if ($this->onSchemaAlterTableRenameColumn($oldColumnName, $column, $diff, $columnSql)) {
841
                continue;
842
            }
843
844
            $oldColumnName = new Identifier($oldColumnName);
845
846
            $sql[] = 'ALTER TABLE ' . $diff->getName($this)->getQuotedName($this) .
847
                ' RENAME COLUMN ' . $oldColumnName->getQuotedName($this) .' TO ' . $column->getQuotedName($this);
848
        }
849
850
        $fields = [];
851
        foreach ($diff->removedColumns as $column) {

lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php 1 location

@@ 592-601 (lines=10) @@
589
            }
590
        }
591
592
        foreach ($diff->renamedColumns as $oldColumnName => $column) {
593
            if ($this->onSchemaAlterTableRenameColumn($oldColumnName, $column, $diff, $columnSql)) {
594
                continue;
595
            }
596
597
            $oldColumnName = new Identifier($oldColumnName);
598
599
            $sql[] = 'ALTER TABLE ' . $diff->getName($this)->getQuotedName($this) .
600
                ' RENAME COLUMN ' . $oldColumnName->getQuotedName($this) . ' TO ' . $column->getQuotedName($this);
601
        }
602
603
        $tableSql = [];
604