Passed
Pull Request — master (#32)
by
unknown
01:51
created
src/WrkLst/DocxMustache/MustacheRender.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
             $mustache_template = self::TagCleaner($mustache_template);
11 11
         }
12 12
 
13
-        $m = new \Mustache_Engine(['escape' => function ($value) {
13
+        $m = new \Mustache_Engine(['escape' => function($value) {
14 14
             if (str_replace('*[[DONOTESCAPE]]*', '', $value) != $value) {
15 15
                 $value = str_replace('&', '&', $value);
16 16
                 
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 
34 34
         return preg_replace_callback(
35 35
             '/{{(.*?)}}/',
36
-            function ($match) {
36
+            function($match) {
37 37
                 return strip_tags($match[0]);
38 38
             },
39 39
             preg_replace("/(?<!{){(?!{)<\/w:t>[\s\S]*?<w:t>{/", '{{', $content)
Please login to merge, or discard this patch.
src/WrkLst/DocxMustache/DocxMustache.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -480,7 +480,7 @@
 block discarded – undo
480 480
             //wait until process is ready
481 481
         }
482 482
         // executes after the command finishes
483
-        if (! $process->isSuccessful()) {
483
+        if (!$process->isSuccessful()) {
484 484
             throw new \Symfony\Component\Process\Exception\ProcessFailedException($process);
485 485
         } else {
486 486
             $path_parts = pathinfo($this->StoragePath($this->local_path.$this->template_file_name));
Please login to merge, or discard this patch.