@@ -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)); |