@@ -92,15 +92,15 @@ |
||
92 | 92 | |
93 | 93 | //Load a template, firstly check if it's a file or a valid string |
94 | 94 | private function loadTemplate() { |
95 | - $result = ['body' => $this->template, 'headers' => []]; |
|
95 | + $result = ['body' => $this->template, 'headers' => []]; |
|
96 | 96 | if (file_exists($this->template)) $result = $this->loadTemplateFromFile($this->template); |
97 | 97 | return $result; |
98 | 98 | } |
99 | 99 | |
100 | - private function loadTemplateFromFile($file) { |
|
101 | - $xml = $this->cache->load($this->template, filemtime($this->template)); |
|
102 | - return $xml ? $xml : ['body' => file_get_contents($this->template) ?: "", 'headers' => []]; |
|
103 | - } |
|
100 | + private function loadTemplateFromFile($file) { |
|
101 | + $xml = $this->cache->load($this->template, filemtime($this->template)); |
|
102 | + return $xml ? $xml : ['body' => file_get_contents($this->template) ?: "", 'headers' => []]; |
|
103 | + } |
|
104 | 104 | |
105 | 105 | //Load the TSS rules either from a file or as a string |
106 | 106 | //N.b. only files can be cached |