Passed
Push — master ( e1970b...6cc6b2 )
by Tobias
02:12
created
src/WrkLst/DocxMustache/DocxMustache.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
             $sxe->addAttribute('Extension', 'jpeg');
172 172
             $sxe->addAttribute('ContentType', 'image/jpeg');
173 173
 
174
-            if($ct_file_xml = $ct_file->asXML())
174
+            if ($ct_file_xml = $ct_file->asXML())
175 175
             {
176 176
                 \Storage::disk($this->storageDisk)->put($this->local_path.'[Content_Types].xml', $ct_file_xml);
177 177
                 $this->zipper->add($this->storagePath($this->local_path.'[Content_Types].xml'));
@@ -335,7 +335,7 @@  discard block
 block discarded – undo
335 335
             }
336 336
         }
337 337
 
338
-        if($rels_file_xml = $rels_file->asXML())
338
+        if ($rels_file_xml = $rels_file->asXML())
339 339
         {
340 340
             \Storage::disk($this->storageDisk)->put($this->local_path.'word/_rels/document.xml.rels', $rels_file_xml);
341 341
             $this->zipper->folder('word/_rels')->add($this->storagePath($this->local_path.'word/_rels/document.xml.rels'));
@@ -344,7 +344,7 @@  discard block
 block discarded – undo
344 344
             throw new Exception('canot generate xml for word/_rels/document.xml.rels.');
345 345
         }
346 346
 
347
-        if($main_file_xml = $main_file->asXML())
347
+        if ($main_file_xml = $main_file->asXML())
348 348
         {
349 349
             $this->word_doc = $main_file_xml;
350 350
         } else
@@ -426,10 +426,10 @@  discard block
 block discarded – undo
426 426
             $value_array[] = $tag_open_values[0];
427 427
         }
428 428
 
429
-        $value = implode('',$value_array);
429
+        $value = implode('', $value_array);
430 430
 
431
-        if($run_again) {
432
-                    $value = $this->convertHtmlToOpenXMLTag($value,$tag);
431
+        if ($run_again) {
432
+                    $value = $this->convertHtmlToOpenXMLTag($value, $tag);
433 433
         }
434 434
 
435 435
         return $value;
@@ -440,8 +440,8 @@  discard block
 block discarded – undo
440 440
      */
441 441
     protected function convertHtmlToOpenXML($value)
442 442
     {
443
-        $line_breaks = array("&lt;br /&gt;","&lt;br/&gt;","&lt;br&gt;","<br />","<br/>","<br>");
444
-        $value = str_replace($line_breaks,'<w:br/>',$value);
443
+        $line_breaks = array("&lt;br /&gt;", "&lt;br/&gt;", "&lt;br&gt;", "<br />", "<br/>", "<br>");
444
+        $value = str_replace($line_breaks, '<w:br/>', $value);
445 445
 
446 446
         $value = $this->convertHtmlToOpenXMLTag($value, "b");
447 447
         $value = $this->convertHtmlToOpenXMLTag($value, "i");
Please login to merge, or discard this patch.