Code Duplication    Length = 3-7 lines in 4 locations

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

@@ 1591-1593 (lines=3) @@
1588
            foreach ($table->getColumns() as $column) {
1589
                $comment = $this->getColumnComment($column);
1590
1591
                if (null !== $comment && '' !== $comment) {
1592
                    $sql[] = $this->getCommentOnColumnSQL($tableName, $column->getQuotedName($this), $comment);
1593
                }
1594
            }
1595
        }
1596

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

@@ 526-532 (lines=7) @@
523
524
            $comment = $this->getColumnComment($column);
525
526
            if (null !== $comment && '' !== $comment) {
527
                $commentsSQL[] = $this->getCommentOnColumnSQL(
528
                    $diff->getName($this)->getQuotedName($this),
529
                    $column->getQuotedName($this),
530
                    $comment
531
                );
532
            }
533
        }
534
535
        foreach ($diff->removedColumns as $column) {

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

@@ 503-509 (lines=7) @@
500
501
            $comment = $this->getColumnComment($column);
502
503
            if (null !== $comment && '' !== $comment) {
504
                $commentsSQL[] = $this->getCommentOnColumnSQL(
505
                    $diff->getName($this)->getQuotedName($this),
506
                    $column->getQuotedName($this),
507
                    $comment
508
                );
509
            }
510
        }
511
512
        foreach ($diff->removedColumns as $column) {

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

@@ 146-152 (lines=7) @@
143
144
            $comment = $this->getColumnComment($column);
145
146
            if (null !== $comment && '' !== $comment) {
147
                $commentsSQL[] = $this->getCommentOnColumnSQL(
148
                    $diff->getName($this)->getQuotedName($this),
149
                    $column->getQuotedName($this),
150
                    $comment
151
                );
152
            }
153
        }
154
155
        /** @var \Doctrine\DBAL\Schema\Column $column */