Skip to content

Commit

Permalink
Fixed coding standards violations
Browse files Browse the repository at this point in the history
  • Loading branch information
Graham Wharton committed Jul 2, 2019
1 parent 7e3bc71 commit b3e1aed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 20 deletions.
20 changes: 0 additions & 20 deletions lib/internal/Magento/Framework/Mail/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,26 +156,6 @@ public function getRawMessage()
return $this->zendMessage->toString();
}

/**
* Create HTML mime message from the string.
*
* @param string $htmlBody
* @return \Zend\Mime\Message
*
* @deprecated All emails that Magento sends should be mime encoded. Therefore
* use generic function createMimeFromString
* @see createMimeFromString()
*/
private function createHtmlMimeFromString($htmlBody)
{
$htmlPart = new Part($htmlBody);
$htmlPart->setCharset($this->zendMessage->getEncoding());
$htmlPart->setType(Mime::TYPE_HTML);
$mimeMessage = new \Zend\Mime\Message();
$mimeMessage->addPart($htmlPart);
return $mimeMessage;
}

/**
* Create mime message from the string.
*
Expand Down
3 changes: 3 additions & 0 deletions lib/internal/Magento/Framework/Mail/Test/Unit/MessageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
*/
namespace Magento\Framework\Mail\Test\Unit;

/**
* test Magento\Framework\Mail\Message
*/
class MessageTest extends \PHPUnit\Framework\TestCase
{
/**
Expand Down

0 comments on commit b3e1aed

Please sign in to comment.