@@ -344,7 +344,7 @@ |
||
| 344 | 344 | $total = $zip->numFiles; |
| 345 | 345 | for ($i = 0; $i < $total; $i++) { |
| 346 | 346 | $stat = $zip->statIndex($i); |
| 347 | - if($stat !== false ){ |
|
| 347 | + if ($stat !== false) { |
|
| 348 | 348 | foreach ($this->fileListToProcess as $fileToProcess) { |
| 349 | 349 | if (fnmatch($fileToProcess, $stat['name'])) { |
| 350 | 350 | $fileList[] = $stat['name']; |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | // coem with the expected content |
| 98 | 98 | $variables = (string) preg_replace_callback( |
| 99 | 99 | '/{{(.*?)}}/', |
| 100 | - function ($match) { |
|
| 100 | + function($match) { |
|
| 101 | 101 | return strip_tags($match[0]); |
| 102 | 102 | }, |
| 103 | 103 | (string) preg_replace('/(?<!{){(?!{)<\/w:t>[\s\S]*?<w:t>{/', '{{', $content) |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | |
| 106 | 106 | return (string) preg_replace_callback( |
| 107 | 107 | '/{%(.*?)%}/', |
| 108 | - function ($match) { |
|
| 108 | + function($match) { |
|
| 109 | 109 | return strip_tags($match[0]); |
| 110 | 110 | }, |
| 111 | 111 | (string) preg_replace('/(?<!{){(?!{)<\/w:t>[\s\S]*?<w:t>{/', '{%', $variables) |