@@ -60,8 +60,9 @@ discard block |
||
| 60 | 60 | { |
| 61 | 61 | //introduce logging method here to keep track of process |
| 62 | 62 | // can be overwritten in extended class to log with custom preocess logger |
| 63 | - if ($this->verbose) |
|
| 64 | - Log::error($msg); |
|
| 63 | + if ($this->verbose) { |
|
| 64 | + Log::error($msg); |
|
| 65 | + } |
|
| 65 | 66 | } |
| 66 | 67 | |
| 67 | 68 | public function cleanUpTmpDirs() |
@@ -129,8 +130,7 @@ discard block |
||
| 129 | 130 | if($xml_object = simplexml_load_file($this->storagePath($this->local_path.$file))) |
| 130 | 131 | { |
| 131 | 132 | return $xml_object; |
| 132 | - } |
|
| 133 | - else |
|
| 133 | + } else |
|
| 134 | 134 | { |
| 135 | 135 | throw new Exception('Cannot load XML Object from file '.$file); |
| 136 | 136 | } |
@@ -178,8 +178,9 @@ discard block |
||
| 178 | 178 | |
| 179 | 179 | protected function MustacheRender($items, $mustache_template, $clean_tags = true) |
| 180 | 180 | { |
| 181 | - if($clean_tags) |
|
| 182 | - $mustache_template = $this->MustacheTagCleaner($mustache_template); |
|
| 181 | + if($clean_tags) { |
|
| 182 | + $mustache_template = $this->MustacheTagCleaner($mustache_template); |
|
| 183 | + } |
|
| 183 | 184 | |
| 184 | 185 | $m = new \Mustache_Engine(array('escape' => function($value) { |
| 185 | 186 | if (str_replace('*[[DONOTESCAPE]]*', '', $value) != $value) { |