@@ -10,7 +10,7 @@ discard block |
||
| 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 |
||
| 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) |
@@ -480,7 +480,7 @@ |
||
| 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)); |