@@ -8,8 +8,6 @@ discard block |
||
8 | 8 | |
9 | 9 | use Faulancer\Event\Observer; |
10 | 10 | use Faulancer\Event\Type\OnDispatch; |
11 | -use Faulancer\Exception\ClassNotFoundException; |
|
12 | -use Faulancer\Exception\DispatchFailureException; |
|
13 | 11 | use Faulancer\Exception\IncompatibleResponseException; |
14 | 12 | use Faulancer\Exception\ServiceNotFoundException; |
15 | 13 | use Faulancer\Http\Http; |
@@ -17,7 +15,6 @@ discard block |
||
17 | 15 | use Faulancer\Http\Request; |
18 | 16 | use Faulancer\Http\Response; |
19 | 17 | use Faulancer\Exception\MethodNotFoundException; |
20 | -use Faulancer\Service\AuthenticatorPlugin; |
|
21 | 18 | use Faulancer\Service\AuthenticatorService; |
22 | 19 | use Faulancer\Service\Config; |
23 | 20 | use Faulancer\Service\SessionManagerService; |
@@ -7,7 +7,6 @@ |
||
7 | 7 | namespace Faulancer\View\Helper; |
8 | 8 | |
9 | 9 | use Faulancer\View\AbstractViewHelper; |
10 | -use Faulancer\View\ViewController; |
|
11 | 10 | |
12 | 11 | /** |
13 | 12 | * Class CodeBlock |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Faulancer\View\Helper; |
4 | 4 | |
5 | -use Faulancer\Exception\ConfigInvalidException; |
|
6 | 5 | use Faulancer\Exception\RouteInvalidException; |
7 | 6 | use Faulancer\Exception\ServiceNotFoundException; |
8 | 7 | use Faulancer\Http\Request; |
@@ -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)); |