@@ -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 | ]; |
@@ -17,23 +17,23 @@ discard block |
||
| 17 | 17 | return [ |
| 18 | 18 | [ |
| 19 | 19 | 'key' => new Typed(ServerRequestInterface::class), |
| 20 | - 'value' => ParameterWire::post(function () { |
|
| 20 | + 'value' => ParameterWire::post(function() { |
|
| 21 | 21 | return RequestMatcher::getRequest(); |
| 22 | 22 | }) |
| 23 | 23 | ], |
| 24 | 24 | [ |
| 25 | 25 | 'key' => new Named('urlPattern'), |
| 26 | - 'value' => ParameterWire::post(function () { |
|
| 26 | + 'value' => ParameterWire::post(function() { |
|
| 27 | 27 | return RequestMatcher::getPatternedUrl(); |
| 28 | 28 | }) |
| 29 | 29 | ], |
| 30 | 30 | [ |
| 31 | 31 | 'key' => new TypedAndNamed('array', 'urlVariable'), |
| 32 | - 'value' => ParameterWire::post(function () { |
|
| 32 | + 'value' => ParameterWire::post(function() { |
|
| 33 | 33 | return RequestMatcher::getUrlNameMatching(); |
| 34 | 34 | }) |
| 35 | 35 | ], |
| 36 | - ParameterWire::postCallback(function () { |
|
| 36 | + ParameterWire::postCallback(function() { |
|
| 37 | 37 | $result = []; |
| 38 | 38 | foreach (RequestMatcher::getUrlNameMatching() as $name => $value) { |
| 39 | 39 | $result[] = [ |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | }), |
| 46 | 46 | [ |
| 47 | 47 | 'key' => new Typed(ProcInterface::class), |
| 48 | - 'value' => ParameterWire::post(function () { |
|
| 48 | + 'value' => ParameterWire::post(function() { |
|
| 49 | 49 | return RequestMatcher::getControllerProc(); |
| 50 | 50 | }) |
| 51 | 51 | ], |
@@ -55,19 +55,19 @@ discard block |
||
| 55 | 55 | ], |
| 56 | 56 | [ |
| 57 | 57 | 'key' => new Typed(AccountManagerInterface::class), |
| 58 | - 'value' => ParameterWire::post(function () { |
|
| 58 | + 'value' => ParameterWire::post(function() { |
|
| 59 | 59 | return AuthManager::getAccountManager(); |
| 60 | 60 | }) |
| 61 | 61 | ], |
| 62 | 62 | [ |
| 63 | 63 | 'key' => new Typed(LoginManagerInterface::class), |
| 64 | - 'value' => ParameterWire::post(function () { |
|
| 64 | + 'value' => ParameterWire::post(function() { |
|
| 65 | 65 | return AuthManager::getLoginManager(); |
| 66 | 66 | }) |
| 67 | 67 | ], |
| 68 | 68 | [ |
| 69 | 69 | 'key' => new Typed(EntityManagerInterface::class), |
| 70 | - 'value' => ParameterWire::post(function () { |
|
| 70 | + 'value' => ParameterWire::post(function() { |
|
| 71 | 71 | return DatabaseManager::getEntityManager(); |
| 72 | 72 | }) |
| 73 | 73 | ], |