Skip to content

Commit a18a34a

Browse files
author
Ivan Kerin
committed
add badges, remove unused method
1 parent 18d941b commit a18a34a

File tree

2 files changed

+1
-19
lines changed

2 files changed

+1
-19
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Swiftmailer Css Inliner Plugin
1+
# Swiftmailer Css Inliner Plugin [![Build Status](https://travis-ci.org/OpenBuildings/swiftmailer-css-inliner.png?branch=master)](https://travis-ci.org/OpenBuildings/db-fixtures) [![Coverage Status](https://coveralls.io/repos/OpenBuildings/swiftmailer-css-inliner/badge.png?branch=master)](https://coveralls.io/r/OpenBuildings/swiftmailer-css-inliner?branch=master)
22

33
A swiftmailer plugin that inlines the css (in style tags) into the specific html tags. Uses [CssToInlineStyles](https://github.com/tijsverkoyen/CssToInlineStyles). Works for both html body or html parts.
44

src/Openbuildings/Swiftmailer/CssInlinerPlugin.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,6 @@
1212
*/
1313
class CssInlinerPlugin implements \Swift_Events_SendListener
1414
{
15-
/**
16-
* @param Swift_Mime_Message $message
17-
* @param string $mime_type
18-
* @return Swift_Mime_MimePart
19-
*/
20-
protected function getMIMEPart(\Swift_Mime_Message $message, $mime_type)
21-
{
22-
$part_content = NULL;
23-
foreach ($message->getChildren() as $part)
24-
{
25-
if (strpos($part->getContentType(), $mime_type) === 0)
26-
{
27-
$part_content = $part;
28-
}
29-
}
30-
return $part_content;
31-
}
32-
3315
/**
3416
* @param Swift_Events_SendEvent $evt
3517
*/

0 commit comments

Comments
 (0)