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

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