@@ -339,7 +339,7 @@ |
||
339 | 339 | /** |
340 | 340 | * Abstraction of call_user_func_array |
341 | 341 | * |
342 | - * @param $class |
|
342 | + * @param AbstractViewHelper $class |
|
343 | 343 | * @param $arguments |
344 | 344 | * |
345 | 345 | * @return mixed |
@@ -33,8 +33,8 @@ |
||
33 | 33 | $subview->setTemplatePath($this->view->getTemplatePath()); |
34 | 34 | } |
35 | 35 | |
36 | - $subview->setTemplate( $template ); |
|
37 | - $subview->setVariables( $variables ); |
|
36 | + $subview->setTemplate($template); |
|
37 | + $subview->setVariables($variables); |
|
38 | 38 | return $subview->render(); |
39 | 39 | } |
40 | 40 |
@@ -22,7 +22,7 @@ |
||
22 | 22 | */ |
23 | 23 | public function __invoke(string $block, string $defaultValue = '') |
24 | 24 | { |
25 | - if($this->view->getVariable($block) === '') { |
|
25 | + if ($this->view->getVariable($block) === '') { |
|
26 | 26 | return $defaultValue; |
27 | 27 | } |
28 | 28 | return trim($this->view->getVariable($block)); |