@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | */ |
| 157 | 157 | public function getVariable(string $key) |
| 158 | 158 | { |
| 159 | - if(isset($this->variable[$key])) { |
|
| 159 | + if (isset($this->variable[$key])) { |
|
| 160 | 160 | return $this->variable[$key]; |
| 161 | 161 | } |
| 162 | 162 | |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | */ |
| 172 | 172 | public function hasVariable(string $key) :bool |
| 173 | 173 | { |
| 174 | - if(isset($this->variable[$key])) { |
|
| 174 | + if (isset($this->variable[$key])) { |
|
| 175 | 175 | return true; |
| 176 | 176 | } |
| 177 | 177 | |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | */ |
| 187 | 187 | public function setVariables(array $variables = []) :self |
| 188 | 188 | { |
| 189 | - foreach($variables AS $key=>$value) { |
|
| 189 | + foreach ($variables AS $key=>$value) { |
|
| 190 | 190 | $this->setVariable($key, $value); |
| 191 | 191 | } |
| 192 | 192 | |
@@ -272,7 +272,7 @@ discard block |
||
| 272 | 272 | */ |
| 273 | 273 | public function __call($name, $arguments) |
| 274 | 274 | { |
| 275 | - $coreViewHelper = __NAMESPACE__ . '\Helper\\' . ucfirst($name); |
|
| 275 | + $coreViewHelper = __NAMESPACE__ . '\Helper\\' . ucfirst($name); |
|
| 276 | 276 | |
| 277 | 277 | if (!empty($this->viewHelpers[$coreViewHelper])) { |
| 278 | 278 | return $this->_callUserFuncArray($this->viewHelpers[$coreViewHelper], $arguments); |
@@ -325,8 +325,8 @@ discard block |
||
| 325 | 325 | */ |
| 326 | 326 | public function __destruct() |
| 327 | 327 | { |
| 328 | - unset( $this->variable ); |
|
| 329 | - unset( $this->template ); |
|
| 328 | + unset($this->variable); |
|
| 329 | + unset($this->template); |
|
| 330 | 330 | } |
| 331 | 331 | |
| 332 | 332 | } |
| 333 | 333 | \ No newline at end of file |