Code Duplication    Length = 10-10 lines in 2 locations

core/vendor/doctrine/dbal/lib/Doctrine/DBAL/Platforms/OraclePlatform.php 1 location

@@ 851-860 (lines=10) @@
848
            $sql[] = 'ALTER TABLE ' . $diff->getName($this)->getQuotedName($this) . ' MODIFY (' . implode(', ', $fields) . ')';
849
        }
850
851
        foreach ($diff->renamedColumns as $oldColumnName => $column) {
852
            if ($this->onSchemaAlterTableRenameColumn($oldColumnName, $column, $diff, $columnSql)) {
853
                continue;
854
            }
855
856
            $oldColumnName = new Identifier($oldColumnName);
857
858
            $sql[] = 'ALTER TABLE ' . $diff->getName($this)->getQuotedName($this) .
859
                ' RENAME COLUMN ' . $oldColumnName->getQuotedName($this) .' TO ' . $column->getQuotedName($this);
860
        }
861
862
        $fields = [];
863
        foreach ($diff->removedColumns as $column) {

core/vendor/doctrine/dbal/lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php 1 location

@@ 608-617 (lines=10) @@
605
            }
606
        }
607
608
        foreach ($diff->renamedColumns as $oldColumnName => $column) {
609
            if ($this->onSchemaAlterTableRenameColumn($oldColumnName, $column, $diff, $columnSql)) {
610
                continue;
611
            }
612
613
            $oldColumnName = new Identifier($oldColumnName);
614
615
            $sql[] = 'ALTER TABLE ' . $diff->getName($this)->getQuotedName($this) .
616
                ' RENAME COLUMN ' . $oldColumnName->getQuotedName($this) . ' TO ' . $column->getQuotedName($this);
617
        }
618
619
        $tableSql = [];
620