@@ -173,11 +173,11 @@ discard block |
||
173 | 173 | /** |
174 | 174 | * Convert class name to underscore and set latte file extension |
175 | 175 | */ |
176 | - $this->underscore_name = lcfirst(preg_replace_callback('/(?<=.)([A-Z])/', function ($m) { |
|
177 | - return '_' . strtolower($m[1]); |
|
176 | + $this->underscore_name = lcfirst(preg_replace_callback('/(?<=.)([A-Z])/', function($m) { |
|
177 | + return '_'.strtolower($m[1]); |
|
178 | 178 | }, $class_name)); |
179 | 179 | |
180 | - $template_name = $this->underscore_name . '.latte'; |
|
180 | + $template_name = $this->underscore_name.'.latte'; |
|
181 | 181 | $this->log_type = $this->underscore_name; |
182 | 182 | |
183 | 183 | if ($this->template_file) { |
@@ -241,7 +241,7 @@ discard block |
||
241 | 241 | * In case mail logging is turned on, log failed email message |
242 | 242 | */ |
243 | 243 | if ($this->config === self::CONFIG_BOTH) { |
244 | - $this->logger->log($this->log_type . '_failed', $this->message); |
|
244 | + $this->logger->log($this->log_type.'_failed', $this->message); |
|
245 | 245 | } |
246 | 246 | |
247 | 247 | throw $e; |