Code Duplication    Length = 16-16 lines in 2 locations

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

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