@@ -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 | ] |
@@ -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); |
@@ -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 |
@@ -123,7 +123,7 @@ |
||
123 | 123 | { |
124 | 124 | $pos = strrpos($this->getFile(), '/'); |
125 | 125 | |
126 | - if($pos === false) { |
|
126 | + if ($pos === false) { |
|
127 | 127 | return $file . $this->settings['postfix']; |
128 | 128 | } |
129 | 129 |
@@ -16,11 +16,11 @@ |
||
16 | 16 | foreach ($arr as $key => $value) { |
17 | 17 | $item = is_int($key) ? $value : $key; |
18 | 18 | |
19 | - if(is_string($item) === false) { |
|
19 | + if (is_string($item) === false) { |
|
20 | 20 | throw new InvalidArgumentException('Given array contain not string key'); |
21 | 21 | } |
22 | 22 | |
23 | - if(self::isMatchedString($item, $str)) { |
|
23 | + if (self::isMatchedString($item, $str)) { |
|
24 | 24 | return $item; |
25 | 25 | } |
26 | 26 | } |
@@ -21,7 +21,7 @@ |
||
21 | 21 | { |
22 | 22 | $operationKey = ArrayUtils::find($this->permission, $operation); |
23 | 23 | |
24 | - if($operationKey === false) { |
|
24 | + if ($operationKey === false) { |
|
25 | 25 | return null; |
26 | 26 | } |
27 | 27 |