Skip to content

Commit b3e1aed

Browse files
author
Graham Wharton
committed
Fixed coding standards violations
1 parent 7e3bc71 commit b3e1aed

File tree

2 files changed

+3
-20
lines changed

2 files changed

+3
-20
lines changed

lib/internal/Magento/Framework/Mail/Message.php

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -156,26 +156,6 @@ public function getRawMessage()
156156
return $this->zendMessage->toString();
157157
}
158158

159-
/**
160-
* Create HTML mime message from the string.
161-
*
162-
* @param string $htmlBody
163-
* @return \Zend\Mime\Message
164-
*
165-
* @deprecated All emails that Magento sends should be mime encoded. Therefore
166-
* use generic function createMimeFromString
167-
* @see createMimeFromString()
168-
*/
169-
private function createHtmlMimeFromString($htmlBody)
170-
{
171-
$htmlPart = new Part($htmlBody);
172-
$htmlPart->setCharset($this->zendMessage->getEncoding());
173-
$htmlPart->setType(Mime::TYPE_HTML);
174-
$mimeMessage = new \Zend\Mime\Message();
175-
$mimeMessage->addPart($htmlPart);
176-
return $mimeMessage;
177-
}
178-
179159
/**
180160
* Create mime message from the string.
181161
*

lib/internal/Magento/Framework/Mail/Test/Unit/MessageTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
*/
66
namespace Magento\Framework\Mail\Test\Unit;
77

8+
/**
9+
* test Magento\Framework\Mail\Message
10+
*/
811
class MessageTest extends \PHPUnit\Framework\TestCase
912
{
1013
/**

0 commit comments

Comments
 (0)