@@ -36,7 +36,7 @@ |
||
| 36 | 36 | { |
| 37 | 37 | $user = $this->getUserEntity($accountId); |
| 38 | 38 | |
| 39 | - if($user === null) { |
|
| 39 | + if ($user === null) { |
|
| 40 | 40 | return null; |
| 41 | 41 | } |
| 42 | 42 | |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | */ |
| 35 | 35 | public function getAccountById($accountId) |
| 36 | 36 | { |
| 37 | - if(isset($this->accounts[$accountId]) === false) { |
|
| 37 | + if (isset($this->accounts[$accountId]) === false) { |
|
| 38 | 38 | return null; |
| 39 | 39 | } |
| 40 | 40 | |
@@ -6,10 +6,10 @@ |
||
| 6 | 6 | 'before' => 'App\\EventListener\\Auth\\PermissionVerificationListener.validate' |
| 7 | 7 | ], |
| 8 | 8 | 'Test.event' => [ |
| 9 | - 'before' => function () { |
|
| 9 | + 'before' => function() { |
|
| 10 | 10 | echo '<p>before Hook!</p>'; |
| 11 | 11 | }, |
| 12 | - 'after' => function () { |
|
| 12 | + 'after' => function() { |
|
| 13 | 13 | echo '<p>after Hook!</p>'; |
| 14 | 14 | } |
| 15 | 15 | ] |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | |
| 48 | 48 | private function getEventListenerProc($handler) |
| 49 | 49 | { |
| 50 | - return function (ParameterMap $parameterMap) use ($handler) { |
|
| 50 | + return function(ParameterMap $parameterMap) use ($handler) { |
|
| 51 | 51 | /** @var ProcInterface */ |
| 52 | 52 | $proc = ProcFactory::getProc($handler); |
| 53 | 53 | if ($proc instanceof MethodProc) { |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | |
| 58 | 58 | private function registerErrorReporters() |
| 59 | 59 | { |
| 60 | - set_exception_handler(function ($exception) { |
|
| 60 | + set_exception_handler(function($exception) { |
|
| 61 | 61 | /** |
| 62 | 62 | * @var ErrorReporterInterface $reporter |
| 63 | 63 | */ |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | } |
| 73 | 73 | }); |
| 74 | 74 | |
| 75 | - set_error_handler(function ($errno, $errstr, $errfile, $errline, array $errcontext) { |
|
| 75 | + set_error_handler(function($errno, $errstr, $errfile, $errline, array $errcontext) { |
|
| 76 | 76 | throw new ErrorException($errstr, 0, $errno, $errfile, $errline); |
| 77 | 77 | }); |
| 78 | 78 | } |