Code Duplication    Length = 4-4 lines in 3 locations

htdocs/class/mail/phpmailer/class.phpmailer.php 3 locations

@@ 2126-2129 (lines=4) @@
2123
        $result = '';
2124
        $ismultipart = true;
2125
        switch ($this->message_type) {
2126
            case 'inline':
2127
                $result .= $this->headerLine('Content-Type', 'multipart/related;');
2128
                $result .= $this->textLine("\tboundary=\"" . $this->boundary[1] . '"');
2129
                break;
2130
            case 'attach':
2131
            case 'inline_attach':
2132
            case 'alt_attach':
@@ 2133-2136 (lines=4) @@
2130
            case 'attach':
2131
            case 'inline_attach':
2132
            case 'alt_attach':
2133
            case 'alt_inline_attach':
2134
                $result .= $this->headerLine('Content-Type', 'multipart/mixed;');
2135
                $result .= $this->textLine("\tboundary=\"" . $this->boundary[1] . '"');
2136
                break;
2137
            case 'alt':
2138
            case 'alt_inline':
2139
                $result .= $this->headerLine('Content-Type', 'multipart/alternative;');
@@ 2138-2141 (lines=4) @@
2135
                $result .= $this->textLine("\tboundary=\"" . $this->boundary[1] . '"');
2136
                break;
2137
            case 'alt':
2138
            case 'alt_inline':
2139
                $result .= $this->headerLine('Content-Type', 'multipart/alternative;');
2140
                $result .= $this->textLine("\tboundary=\"" . $this->boundary[1] . '"');
2141
                break;
2142
            default:
2143
                // Catches case 'plain': and case '':
2144
                $result .= $this->textLine('Content-Type: ' . $this->ContentType . '; charset=' . $this->CharSet);