Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 2242-2248 (lines=7) @@
2239
        //Use this as a preamble in all multipart message types
2240
        $mimepre = "This is a multi-part message in MIME format." . $this->LE . $this->LE;
2241
        switch ($this->message_type) {
2242
            case 'inline':
2243
                $body .= $mimepre;
2244
                $body .= $this->getBoundary($this->boundary[1], $bodyCharSet, '', $bodyEncoding);
2245
                $body .= $this->encodeString($this->Body, $bodyEncoding);
2246
                $body .= $this->LE . $this->LE;
2247
                $body .= $this->attachAll('inline', $this->boundary[1]);
2248
                break;
2249
            case 'attach':
2250
                $body .= $mimepre;
2251
                $body .= $this->getBoundary($this->boundary[1], $bodyCharSet, '', $bodyEncoding);
@@ 2249-2255 (lines=7) @@
2246
                $body .= $this->LE . $this->LE;
2247
                $body .= $this->attachAll('inline', $this->boundary[1]);
2248
                break;
2249
            case 'attach':
2250
                $body .= $mimepre;
2251
                $body .= $this->getBoundary($this->boundary[1], $bodyCharSet, '', $bodyEncoding);
2252
                $body .= $this->encodeString($this->Body, $bodyEncoding);
2253
                $body .= $this->LE . $this->LE;
2254
                $body .= $this->attachAll('attachment', $this->boundary[1]);
2255
                break;
2256
            case 'inline_attach':
2257
                $body .= $mimepre;
2258
                $body .= $this->textLine('--' . $this->boundary[1]);