Code Duplication    Length = 6-6 lines in 2 locations

Email/class.Email.php 2 locations

@@ 355-360 (lines=6) @@
352
        $rawMessage .= "\n--{$boundary}\n";
353
        $rawMessage .= 'Content-type: Multipart/Alternative; boundary="alt-'.$boundary.'"'."\n";
354
        $textBody    = $this->getTextBody();
355
        if($textBody !== false && strlen($textBody) > 0)
356
        {
357
            $rawMessage .= "\n--alt-{$boundary}\n";
358
            $rawMessage .= "Content-Type: text/plain\n\n";
359
            $rawMessage .= $textBody."\n";
360
        }
361
        $htmlBody = $this->getHTMLBody();
362
        if($htmlBody !== false && strlen($htmlBody) > 0)
363
        {
@@ 362-367 (lines=6) @@
359
            $rawMessage .= $textBody."\n";
360
        }
361
        $htmlBody = $this->getHTMLBody();
362
        if($htmlBody !== false && strlen($htmlBody) > 0)
363
        {
364
            $rawMessage .= "\n--alt-{$boundary}\n";
365
            $rawMessage .= 'Content-Type: text/html; charset="UTF-8"'."\n\n";
366
            $rawMessage .= $htmlBody."\n";
367
        }
368
        $rawMessage .= "\n--alt-{$boundary}--\n";
369
        foreach($this->attachments as $attachment)
370
        {