Code Duplication    Length = 16-16 lines in 2 locations

lib/Doctrine/DBAL/Platforms/SQLServerPlatform.php 2 locations

@@ 754-769 (lines=16) @@
751
     *
752
     * @link http://msdn.microsoft.com/en-us/library/ms180047%28v=sql.90%29.aspx
753
     */
754
    public function getAddExtendedPropertySQL(
755
        $name,
756
        $value = null,
757
        $level0Type = null,
758
        $level0Name = null,
759
        $level1Type = null,
760
        $level1Name = null,
761
        $level2Type = null,
762
        $level2Name = null
763
    ) {
764
        return "EXEC sp_addextendedproperty " .
765
            "N" . $this->quoteStringLiteral($name) . ", N" . $this->quoteStringLiteral($value) . ", " .
766
            "N" . $this->quoteStringLiteral($level0Type) . ", " . $level0Name . ', ' .
767
            "N" . $this->quoteStringLiteral($level1Type) . ", " . $level1Name . ', ' .
768
            "N" . $this->quoteStringLiteral($level2Type) . ", " . $level2Name;
769
    }
770
771
    /**
772
     * Returns the SQL statement for dropping an extended property from a database object.
@@ 818-833 (lines=16) @@
815
     *
816
     * @link http://msdn.microsoft.com/en-us/library/ms186885%28v=sql.90%29.aspx
817
     */
818
    public function getUpdateExtendedPropertySQL(
819
        $name,
820
        $value = null,
821
        $level0Type = null,
822
        $level0Name = null,
823
        $level1Type = null,
824
        $level1Name = null,
825
        $level2Type = null,
826
        $level2Name = null
827
    ) {
828
        return "EXEC sp_updateextendedproperty " .
829
        "N" . $this->quoteStringLiteral($name) . ", N" . $this->quoteStringLiteral($value) . ", " .
830
        "N" . $this->quoteStringLiteral($level0Type) . ", " . $level0Name . ', ' .
831
        "N" . $this->quoteStringLiteral($level1Type) . ", " . $level1Name . ', ' .
832
        "N" . $this->quoteStringLiteral($level2Type) . ", " . $level2Name;
833
    }
834
835
    /**
836
     * {@inheritDoc}