@@ -98,7 +98,7 @@ |
||
98 | 98 | } |
99 | 99 | |
100 | 100 | /** |
101 | - * @param $templatePath |
|
101 | + * @param string $templatePath |
|
102 | 102 | * @return null|string |
103 | 103 | * @throws \Exception |
104 | 104 | */ |
@@ -86,11 +86,11 @@ |
||
86 | 86 | /** @noinspection PhpIncludeInspection */ |
87 | 87 | include( $realPath ); |
88 | 88 | $rendered = ob_get_clean(); |
89 | - }elseif ($this->templateString) { |
|
89 | + } elseif ($this->templateString) { |
|
90 | 90 | ob_start(); |
91 | 91 | eval( "?>" . $this->templateString ); |
92 | 92 | $rendered = ob_get_clean(); |
93 | - }else { |
|
93 | + } else { |
|
94 | 94 | throw new \Exception( "Neither valid template path no valid template string passed to PhpTemplate." ); |
95 | 95 | } |
96 | 96 |