Code Duplication    Length = 16-16 lines in 2 locations

src/wp-includes/class-phpmailer.php 2 locations

@@ 2117-2132 (lines=16) @@
2114
                }
2115
                $body .= $this->endBoundary($this->boundary[1]);
2116
                break;
2117
            case 'alt_inline':
2118
                $body .= $mimepre;
2119
                $body .= $this->getBoundary($this->boundary[1], $altBodyCharSet, 'text/plain', $altBodyEncoding);
2120
                $body .= $this->encodeString($this->AltBody, $altBodyEncoding);
2121
                $body .= $this->LE . $this->LE;
2122
                $body .= $this->textLine('--' . $this->boundary[1]);
2123
                $body .= $this->headerLine('Content-Type', 'multipart/related;');
2124
                $body .= $this->textLine("\tboundary=\"" . $this->boundary[2] . '"');
2125
                $body .= $this->LE;
2126
                $body .= $this->getBoundary($this->boundary[2], $bodyCharSet, 'text/html', $bodyEncoding);
2127
                $body .= $this->encodeString($this->Body, $bodyEncoding);
2128
                $body .= $this->LE . $this->LE;
2129
                $body .= $this->attachAll('inline', $this->boundary[2]);
2130
                $body .= $this->LE;
2131
                $body .= $this->endBoundary($this->boundary[1]);
2132
                break;
2133
            case 'alt_attach':
2134
                $body .= $mimepre;
2135
                $body .= $this->textLine('--' . $this->boundary[1]);
@@ 2133-2148 (lines=16) @@
2130
                $body .= $this->LE;
2131
                $body .= $this->endBoundary($this->boundary[1]);
2132
                break;
2133
            case 'alt_attach':
2134
                $body .= $mimepre;
2135
                $body .= $this->textLine('--' . $this->boundary[1]);
2136
                $body .= $this->headerLine('Content-Type', 'multipart/alternative;');
2137
                $body .= $this->textLine("\tboundary=\"" . $this->boundary[2] . '"');
2138
                $body .= $this->LE;
2139
                $body .= $this->getBoundary($this->boundary[2], $altBodyCharSet, 'text/plain', $altBodyEncoding);
2140
                $body .= $this->encodeString($this->AltBody, $altBodyEncoding);
2141
                $body .= $this->LE . $this->LE;
2142
                $body .= $this->getBoundary($this->boundary[2], $bodyCharSet, 'text/html', $bodyEncoding);
2143
                $body .= $this->encodeString($this->Body, $bodyEncoding);
2144
                $body .= $this->LE . $this->LE;
2145
                $body .= $this->endBoundary($this->boundary[2]);
2146
                $body .= $this->LE;
2147
                $body .= $this->attachAll('attachment', $this->boundary[1]);
2148
                break;
2149
            case 'alt_inline_attach':
2150
                $body .= $mimepre;
2151
                $body .= $this->textLine('--' . $this->boundary[1]);