Code Duplication    Length = 7-9 lines in 2 locations

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

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

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) {