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

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