Code Duplication    Length = 9-9 lines in 3 locations

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

@@ 1607-1615 (lines=9) @@
1604
     *
1605
     * @return string
1606
     */
1607
    public function getCommentOnColumnSQL($tableName, $columnName, $comment)
1608
    {
1609
        $tableName = new Identifier($tableName);
1610
        $columnName = new Identifier($columnName);
1611
        $comment = $this->quoteStringLiteral($comment);
1612
1613
        return "COMMENT ON COLUMN " . $tableName->getQuotedName($this) . "." . $columnName->getQuotedName($this) .
1614
            " IS " . $comment;
1615
    }
1616
1617
    /**
1618
     * Returns the SQL to create inline comment on a column.

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

@@ 370-378 (lines=9) @@
367
    /**
368
     * {@inheritdoc}
369
     */
370
    public function getCommentOnColumnSQL($tableName, $columnName, $comment)
371
    {
372
        $tableName = new Identifier($tableName);
373
        $columnName = new Identifier($columnName);
374
        $comment = $comment === null ? 'NULL' : $this->quoteStringLiteral($comment);
375
376
        return "COMMENT ON COLUMN " . $tableName->getQuotedName($this) . '.' . $columnName->getQuotedName($this) .
377
            " IS $comment";
378
    }
379
380
    /**
381
     * {@inheritdoc}

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

@@ 674-682 (lines=9) @@
671
    /**
672
     * {@inheritdoc}
673
     */
674
    public function getCommentOnColumnSQL($tableName, $columnName, $comment)
675
    {
676
        $tableName = new Identifier($tableName);
677
        $columnName = new Identifier($columnName);
678
        $comment = $comment === null ? 'NULL' : $this->quoteStringLiteral($comment);
679
680
        return "COMMENT ON COLUMN " . $tableName->getQuotedName($this) . "." . $columnName->getQuotedName($this) .
681
            " IS $comment";
682
    }
683
684
    /**
685
     * {@inheritDoc}