@@ -7,10 +7,10 @@ discard block |
||
| 7 | 7 | class PhpOutlookSignature |
| 8 | 8 | { |
| 9 | 9 | private string $default_template = ''; |
| 10 | - private string $template_folder = ''; //<template> |
|
| 11 | - private string $template_file = ''; //<template>/<message>.htm |
|
| 12 | - private string $assets_folder = ''; //<template>/<message>_files/ |
|
| 13 | - private string $assets_local = ''; //<message>_files |
|
| 10 | + private string $template_folder = ''; //<template> |
|
| 11 | + private string $template_file = ''; //<template>/<message>.htm |
|
| 12 | + private string $assets_folder = ''; //<template>/<message>_files/ |
|
| 13 | + private string $assets_local = ''; //<message>_files |
|
| 14 | 14 | private array $keywords = []; |
| 15 | 15 | private array $included_files = []; |
| 16 | 16 | private bool $is_ready = false; |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | } |
| 31 | 31 | $this->template_folder = $folder; |
| 32 | 32 | $this->check_template_files($this->template_folder); |
| 33 | - if (!file_exists($this->assets_folder."/filelist.xml")) { |
|
| 33 | + if (!file_exists($this->assets_folder . "/filelist.xml")) { |
|
| 34 | 34 | $this->create_filelist(); |
| 35 | 35 | } |
| 36 | 36 | $this->analyze_template_text(); |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | $this->keywords = []; |
| 67 | 67 | $this->included_files = []; |
| 68 | 68 | $text = file_get_contents($this->template_file); |
| 69 | - $text = str_replace($this->assets_local.'/', '{assets}/', $text); |
|
| 69 | + $text = str_replace($this->assets_local . '/', '{assets}/', $text); |
|
| 70 | 70 | preg_match_all('|\{(\w+)\}|', $text, $matches, PREG_SET_ORDER); |
| 71 | 71 | foreach ($matches as $match) { |
| 72 | 72 | $keyword = $match[1]; |
@@ -124,8 +124,8 @@ discard block |
||
| 124 | 124 | $copy_file = "$assets_folder/" . basename($file); |
| 125 | 125 | copy($file, $copy_file); |
| 126 | 126 | } |
| 127 | - $install_template = $this->template_folder.'/install_signature.cmd'; |
|
| 128 | - $install_script = $output_folder."/".basename($install_template); |
|
| 127 | + $install_template = $this->template_folder . '/install_signature.cmd'; |
|
| 128 | + $install_script = $output_folder . "/" . basename($install_template); |
|
| 129 | 129 | if (file_exists($install_template)) { |
| 130 | 130 | $script = file_get_contents($install_template); |
| 131 | 131 | $script = str_replace('{source}', "$output_folder", $script); |