@@ -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' => [ |
@@ -9,10 +9,10 @@ |
||
9 | 9 | 'before' => 'App\\EventListener\\Auth\\ValidatorListener.validate' |
10 | 10 | ], |
11 | 11 | 'Test.event' => [ |
12 | - 'before' => function () { |
|
12 | + 'before' => function() { |
|
13 | 13 | echo '<p>before Hook!</p>'; |
14 | 14 | }, |
15 | - 'after' => function () { |
|
15 | + 'after' => function() { |
|
16 | 16 | echo '<p>after Hook!</p>'; |
17 | 17 | } |
18 | 18 | ] |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | return [ |
4 | - 'Test.admin' => [ 'Admin' ] |
|
4 | + 'Test.admin' => ['Admin'] |
|
5 | 5 | ]; |
@@ -71,7 +71,7 @@ |
||
71 | 71 | } |
72 | 72 | |
73 | 73 | private function validateRoutePath() { |
74 | - if(RequestMatcher::getControllerProc() === null) { |
|
74 | + if (RequestMatcher::getControllerProc() === null) { |
|
75 | 75 | throw new RoutePathNotFound( |
76 | 76 | sprintf('Route path not found: %s (%s)', |
77 | 77 | $this->request->getUri()->getPath(), |
@@ -37,7 +37,7 @@ |
||
37 | 37 | P::type(EntityManagerInterface::class) |
38 | 38 | ->lazy(function() { return DatabaseManager::getEntityManager(); }), |
39 | 39 | |
40 | - P::lazyCallback(function () { |
|
40 | + P::lazyCallback(function() { |
|
41 | 41 | $result = []; |
42 | 42 | foreach (RequestMatcher::getUrlNameMatching() as $name => $value) { |
43 | 43 | $result[] = P::name($name)->value($value); |
@@ -7,7 +7,7 @@ |
||
7 | 7 | public static function find(array $arr, $str) |
8 | 8 | { |
9 | 9 | foreach ($arr as $item) { |
10 | - if(self::isMatchedString($item, $str)) { |
|
10 | + if (self::isMatchedString($item, $str)) { |
|
11 | 11 | return $item; |
12 | 12 | } |
13 | 13 | } |
@@ -48,7 +48,7 @@ |
||
48 | 48 | { |
49 | 49 | $viewClassName = get_class($viewRenderer->resolveView($controllerResult)); |
50 | 50 | |
51 | - if(array_search($viewClassName, $this->env['viewPrefix']['applyView']) === false) { |
|
51 | + if (array_search($viewClassName, $this->env['viewPrefix']['applyView']) === false) { |
|
52 | 52 | return $controllerResult; |
53 | 53 | } |
54 | 54 |