@@ -58,10 +58,10 @@ discard block |
||
| 58 | 58 | if (file_exists($this->templateDirectory) == false) { |
| 59 | 59 | throw new Exception("Template directory not set!"); |
| 60 | 60 | } |
| 61 | - if (file_exists($targetTemplate) == false) { |
|
| 61 | + if (file_exists($targetTemplate) == false) { |
|
| 62 | 62 | throw new Exception("Requested template does not exist in $targetTemplate"); |
| 63 | 63 | } |
| 64 | - if (is_readable($targetTemplate) == false) { |
|
| 64 | + if (is_readable($targetTemplate) == false) { |
|
| 65 | 65 | throw new Exception("Requested template is not readable ($targetTemplate)"); |
| 66 | 66 | } |
| 67 | 67 | |
@@ -244,7 +244,7 @@ discard block |
||
| 244 | 244 | $callback = $this->hooks[$hook]; |
| 245 | 245 | |
| 246 | 246 | if (method_exists($this, $callback) == false) { |
| 247 | - throw new Exception("Hook method does not exist! Cannot execute $callback in " . __FILE__ . ":" . __LINE__); |
|
| 247 | + throw new Exception("Hook method does not exist! Cannot execute $callback in " . __FILE__ . ":" . __LINE__); |
|
| 248 | 248 | } |
| 249 | 249 | |
| 250 | 250 | return (count($args) == 0 ? $this->$callback() : $this->$callback($args)); |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | * @param string $class The fully-qualified class name. |
| 12 | 12 | * @return void |
| 13 | 13 | */ |
| 14 | -spl_autoload_register(function ($class) { |
|
| 14 | +spl_autoload_register(function($class) { |
|
| 15 | 15 | |
| 16 | 16 | |
| 17 | 17 | // project-specific namespace prefix |