Passed
Push — master ( dc9099...45d79f )
by
unknown
09:56 queued 08:13
created
src/PhpOutlookSignature.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -7,10 +7,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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();
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
             $copy_file = "$assets_folder/" . basename($file);
70 70
             copy($file, $copy_file);
71 71
         }
72
-        $this->prepare_script($this->template_folder.'/install_windows.cmd', $output_folder, '%APPDATA%\Microsoft\Signatures');
72
+        $this->prepare_script($this->template_folder . '/install_windows.cmd', $output_folder, '%APPDATA%\Microsoft\Signatures');
73 73
         // TODO: install script for MacOS
74 74
         return true;
75 75
     }
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         if (!file_exists($input_file)) {
82 82
             return false;
83 83
         }
84
-        $install_script = $output_folder."/".basename($input_file);
84
+        $install_script = $output_folder . "/" . basename($input_file);
85 85
         $script = file_get_contents($input_file);
86 86
         $script = str_replace('{destin}', $destination, $script);
87 87
         file_put_contents($install_script, $script);
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
         $this->keywords = [];
117 117
         $this->included_files = [];
118 118
         $text = file_get_contents($this->template_file);
119
-        $text = str_replace($this->assets_local.'/', '{assets}/', $text);
119
+        $text = str_replace($this->assets_local . '/', '{assets}/', $text);
120 120
         preg_match_all('|\{(\w+)\}|', $text, $matches, PREG_SET_ORDER);
121 121
         foreach ($matches as $match) {
122 122
             $keyword = $match[1];
Please login to merge, or discard this patch.