Code Duplication    Length = 5-5 lines in 2 locations

mail/inc/class.mail_zpush.inc.php 2 locations

@@ 708-712 (lines=5) @@
705
				$AltBody = $AltBody.$sigTextHtml;
706
		}
707
		// now set the body
708
		if ($AltBody && ($html_body = $mailObject->findBody('html')))
709
		{
710
			if ($this->debugLevel>1) ZLog::Write(LOGLEVEL_DEBUG,__METHOD__.__LINE__.' -> '.$AltBody);
711
			$html_body->setContents($AltBody,array('encoding'=>Horde_Mime_Part::DEFAULT_ENCODING));
712
		}
713
		if ($Body && ($text_body = $mailObject->findBody('plain')))
714
		{
715
			if ($this->debugLevel>1) ZLog::Write(LOGLEVEL_DEBUG,__METHOD__.__LINE__.' -> '.$Body);
@@ 713-717 (lines=5) @@
710
			if ($this->debugLevel>1) ZLog::Write(LOGLEVEL_DEBUG,__METHOD__.__LINE__.' -> '.$AltBody);
711
			$html_body->setContents($AltBody,array('encoding'=>Horde_Mime_Part::DEFAULT_ENCODING));
712
		}
713
		if ($Body && ($text_body = $mailObject->findBody('plain')))
714
		{
715
			if ($this->debugLevel>1) ZLog::Write(LOGLEVEL_DEBUG,__METHOD__.__LINE__.' -> '.$Body);
716
			$text_body->setContents($Body,array('encoding'=>Horde_Mime_Part::DEFAULT_ENCODING));
717
		}
718
		//advanced debugging
719
		// Horde SMTP Class uses utf-8 by default.
720
        //ZLog::Write(LOGLEVEL_DEBUG, "IMAP-SendMail: parsed message: ". print_r($message,1));