| Conditions | 4 |
| Paths | 3 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function FilterResultMessage(&$oMessage) |
||
| 14 | { |
||
| 15 | if ($oMessage) |
||
| 16 | { |
||
| 17 | $sHtml = $oMessage->Html(); |
||
| 18 | if ($sHtml && 0 < strlen($sHtml)) |
||
| 19 | { |
||
| 20 | include_once __DIR__.'/CssToInlineStyles.php'; |
||
| 21 | |||
| 22 | $oCSSToInlineStyles = new \TijsVerkoyen\CssToInlineStyles\CssToInlineStyles($sHtml); |
||
| 23 | $oCSSToInlineStyles->setEncoding('utf-8'); |
||
| 24 | $oCSSToInlineStyles->setUseInlineStylesBlock(true); |
||
| 25 | $oMessage->SetHtml($oCSSToInlineStyles->convert().'<!-- convert-headers-styles-plugin -->'); |
||
| 26 | } |
||
| 27 | } |
||
| 28 | } |
||
| 29 | } |
||
| 30 |