Code Duplication    Length = 7-9 lines in 2 locations

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

@@ 176-184 (lines=9) @@
173
                $alterClauses[] = $alterClause;
174
            }
175
176
            if ($columnDiff->hasChanged('comment')) {
177
                $column = $columnDiff->column;
178
179
                $commentsSQL[] = $this->getCommentOnColumnSQL(
180
                    $diff->getName($this)->getQuotedName($this),
181
                    $column->getQuotedName($this),
182
                    $this->getColumnComment($column)
183
                );
184
            }
185
        }
186
187
        foreach ($diff->renamedColumns as $oldColumnName => $column) {

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

@@ 573-579 (lines=7) @@
570
                }
571
            }
572
573
            if ($columnDiff->hasChanged('comment')) {
574
                $commentsSQL[] = $this->getCommentOnColumnSQL(
575
                    $diff->getName($this)->getQuotedName($this),
576
                    $column->getQuotedName($this),
577
                    $this->getColumnComment($column)
578
                );
579
            }
580
581
            if ($columnDiff->hasChanged('length')) {
582
                $query = 'ALTER ' . $oldColumnName . ' TYPE ' . $column->getType()->getSQLDeclaration($column->toArray(), $this);