@@ -58,6 +58,9 @@ |
||
58 | 58 | return $this->var; |
59 | 59 | } |
60 | 60 | |
61 | + /** |
|
62 | + * @param string $fileName |
|
63 | + */ |
|
61 | 64 | public function file($fileName) |
62 | 65 | { |
63 | 66 | $this->templateFilename = $fileName . $this->settings['postfix']; |
@@ -33,13 +33,13 @@ |
||
33 | 33 | /** |
34 | 34 | * @var ErrorReporter $reporter |
35 | 35 | */ |
36 | - set_exception_handler(function ($exception) { |
|
36 | + set_exception_handler(function($exception) { |
|
37 | 37 | foreach ($this->errorReporters as $reporter) { |
38 | 38 | $reporter->report($exception); |
39 | 39 | } |
40 | 40 | }); |
41 | 41 | |
42 | - set_error_handler(function ($errno, $errstr, $errfile, $errline, array $errcontext) { |
|
42 | + set_error_handler(function($errno, $errstr, $errfile, $errline, array $errcontext) { |
|
43 | 43 | throw new ErrorException($errstr, 0, $errno, $errfile, $errline); |
44 | 44 | }); |
45 | 45 | } |
@@ -36,7 +36,7 @@ |
||
36 | 36 | |
37 | 37 | private function getEventListenerProc($handler) |
38 | 38 | { |
39 | - return function (ParameterMap $parameterMap) use ($handler) { |
|
39 | + return function(ParameterMap $parameterMap) use ($handler) { |
|
40 | 40 | /** @var ProcInterface */ |
41 | 41 | $proc = ProcFactory::getProc($handler); |
42 | 42 | $proc->execWithParameterMap($parameterMap); |
@@ -2,7 +2,7 @@ |
||
2 | 2 | |
3 | 3 | return [ |
4 | 4 | 'displayErrors' => true, |
5 | - 'enableReporters' => [ 'Html' ], |
|
5 | + 'enableReporters' => ['Html'], |
|
6 | 6 | |
7 | 7 | 'reporters' => [ |
8 | 8 | 'Html' => [ |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | return [ |
4 | - 'Test.admin' => [ 'Admin' ] |
|
4 | + 'Test.admin' => ['Admin'] |
|
5 | 5 | ]; |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use Core\ViewModel; |
6 | 6 | use Core\Application; |
7 | 7 | use App\Entity\Post as PostModel; |
8 | -use App\Entity\Board as BoardModel; |
|
9 | 8 | use App\Entity\Comment as CommentModel; |
10 | 9 | use App\Entity\User as UserModel; |
11 | 10 | use App\Auth\LoginManagerInterface; |