Test Setup Failed
Push — master ( 5fd227...55ee81 )
by Tobias
01:08
created
src/WrkLst/DocxMustache/HtmlConversion.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     {
22 22
         $doc = new \DOMDocument();
23 23
         libxml_use_internal_errors(true); // suppress warnings for malformed HTML
24
-        $doc->loadHTML(mb_convert_encoding('<div>' . $html . '</div>', 'HTML-ENTITIES', 'UTF-8'));
24
+        $doc->loadHTML(mb_convert_encoding('<div>'.$html.'</div>', 'HTML-ENTITIES', 'UTF-8'));
25 25
         libxml_clear_errors();
26 26
 
27 27
         $body = $doc->getElementsByTagName('div')->item(0);
@@ -83,6 +83,6 @@  discard block
 block discarded – undo
83 83
             $rPr .= '<w:u w:val="single"/>';
84 84
         }
85 85
 
86
-        return '</w:t></w:r><w:r><w:rPr>' . $rPr . '</w:rPr><w:t xml:space="preserve">' . $text;
86
+        return '</w:t></w:r><w:r><w:rPr>'.$rPr.'</w:rPr><w:t xml:space="preserve">'.$text;
87 87
     }
88 88
 }
Please login to merge, or discard this patch.