Skip to content

Commit 235caba

Browse files
author
Graham Wharton
committed
Fixed coding standards violations
1 parent e6fbf99 commit 235caba

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
@@ -171,26 +171,6 @@ public function setBodyText($text)
171171
return $this->setBody($text);
172172
}
173173

174-
/**
175-
* Create HTML mime message from the string.
176-
*
177-
* @param string $htmlBody
178-
* @return \Zend\Mime\Message
179-
*
180-
* @deprecated All emails that Magento sends should be mime encoded. Therefore
181-
* use generic function createMimeFromString
182-
* @see createMimeFromString()
183-
*/
184-
private function createHtmlMimeFromString($htmlBody)
185-
{
186-
$htmlPart = new Part($htmlBody);
187-
$htmlPart->setCharset($this->zendMessage->getEncoding());
188-
$htmlPart->setType(Mime::TYPE_HTML);
189-
$mimeMessage = new \Zend\Mime\Message();
190-
$mimeMessage->addPart($htmlPart);
191-
return $mimeMessage;
192-
}
193-
194174
/**
195175
* Create mime message from the string.
196176
*

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)