Code Duplication    Length = 4-4 lines in 3 locations

include/phpmailer/class.phpmailer.php 3 locations

@@ 2082-2085 (lines=4) @@
2079
        $result      = '';
2080
        $ismultipart = true;
2081
        switch ($this->message_type) {
2082
            case 'inline':
2083
                $result .= $this->headerLine('Content-Type', 'multipart/related;');
2084
                $result .= $this->textLine("\tboundary=\"" . $this->boundary[1] . '"');
2085
                break;
2086
            case 'attach':
2087
            case 'inline_attach':
2088
            case 'alt_attach':
@@ 2089-2092 (lines=4) @@
2086
            case 'attach':
2087
            case 'inline_attach':
2088
            case 'alt_attach':
2089
            case 'alt_inline_attach':
2090
                $result .= $this->headerLine('Content-Type', 'multipart/mixed;');
2091
                $result .= $this->textLine("\tboundary=\"" . $this->boundary[1] . '"');
2092
                break;
2093
            case 'alt':
2094
            case 'alt_inline':
2095
                $result .= $this->headerLine('Content-Type', 'multipart/alternative;');
@@ 2094-2097 (lines=4) @@
2091
                $result .= $this->textLine("\tboundary=\"" . $this->boundary[1] . '"');
2092
                break;
2093
            case 'alt':
2094
            case 'alt_inline':
2095
                $result .= $this->headerLine('Content-Type', 'multipart/alternative;');
2096
                $result .= $this->textLine("\tboundary=\"" . $this->boundary[1] . '"');
2097
                break;
2098
            default:
2099
                // Catches case 'plain': and case '':
2100
                $result      .= $this->textLine('Content-Type: ' . $this->ContentType . '; charset=' . $this->CharSet);