Code Duplication    Length = 16-16 lines in 2 locations

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

@@ 2284-2299 (lines=16) @@
2281
                }
2282
                $body .= $this->endBoundary($this->boundary[1]);
2283
                break;
2284
            case 'alt_inline':
2285
                $body .= $mimepre;
2286
                $body .= $this->getBoundary($this->boundary[1], $altBodyCharSet, 'text/plain', $altBodyEncoding);
2287
                $body .= $this->encodeString($this->AltBody, $altBodyEncoding);
2288
                $body .= $this->LE . $this->LE;
2289
                $body .= $this->textLine('--' . $this->boundary[1]);
2290
                $body .= $this->headerLine('Content-Type', 'multipart/related;');
2291
                $body .= $this->textLine("\tboundary=\"" . $this->boundary[2] . '"');
2292
                $body .= $this->LE;
2293
                $body .= $this->getBoundary($this->boundary[2], $bodyCharSet, 'text/html', $bodyEncoding);
2294
                $body .= $this->encodeString($this->Body, $bodyEncoding);
2295
                $body .= $this->LE . $this->LE;
2296
                $body .= $this->attachAll('inline', $this->boundary[2]);
2297
                $body .= $this->LE;
2298
                $body .= $this->endBoundary($this->boundary[1]);
2299
                break;
2300
            case 'alt_attach':
2301
                $body .= $mimepre;
2302
                $body .= $this->textLine('--' . $this->boundary[1]);
@@ 2300-2315 (lines=16) @@
2297
                $body .= $this->LE;
2298
                $body .= $this->endBoundary($this->boundary[1]);
2299
                break;
2300
            case 'alt_attach':
2301
                $body .= $mimepre;
2302
                $body .= $this->textLine('--' . $this->boundary[1]);
2303
                $body .= $this->headerLine('Content-Type', 'multipart/alternative;');
2304
                $body .= $this->textLine("\tboundary=\"" . $this->boundary[2] . '"');
2305
                $body .= $this->LE;
2306
                $body .= $this->getBoundary($this->boundary[2], $altBodyCharSet, 'text/plain', $altBodyEncoding);
2307
                $body .= $this->encodeString($this->AltBody, $altBodyEncoding);
2308
                $body .= $this->LE . $this->LE;
2309
                $body .= $this->getBoundary($this->boundary[2], $bodyCharSet, 'text/html', $bodyEncoding);
2310
                $body .= $this->encodeString($this->Body, $bodyEncoding);
2311
                $body .= $this->LE . $this->LE;
2312
                $body .= $this->endBoundary($this->boundary[2]);
2313
                $body .= $this->LE;
2314
                $body .= $this->attachAll('attachment', $this->boundary[1]);
2315
                break;
2316
            case 'alt_inline_attach':
2317
                $body .= $mimepre;
2318
                $body .= $this->textLine('--' . $this->boundary[1]);