@@ -77,7 +77,7 @@ |
||
| 77 | 77 | $this->composerDir = realpath(__DIR__.'/../../../../../..'); |
| 78 | 78 | $this->memberFinder = $memberFinder; |
| 79 | 79 | $this->tokenStorage = new NativeSessionTokenStorage(); |
| 80 | - $this->u2fRegistrationFinder = $u2fRegistrationFinder ?? function ($username) { |
|
| 80 | + $this->u2fRegistrationFinder = $u2fRegistrationFinder ?? function($username) { |
|
| 81 | 81 | return []; |
| 82 | 82 | }; |
| 83 | 83 | } |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | if ( |
| 81 | 81 | $form->isSubmitted() && |
| 82 | 82 | $form->isValid() && |
| 83 | - null!== $httpRequest |
|
| 83 | + null !== $httpRequest |
|
| 84 | 84 | ) { |
| 85 | 85 | $code = $authenticationProcess |
| 86 | 86 | ->getTypedMap() |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | $list[$item['id']]['u2fAuthentications'] = []; |
| 63 | 63 | foreach ($item['u2fAuthentications'] as $u2fAuth) { |
| 64 | 64 | $signRequests = array_map( |
| 65 | - function ($object) { |
|
| 65 | + function($object) { |
|
| 66 | 66 | return (new SignRequest()) |
| 67 | 67 | ->setAppId($object['appId']) |
| 68 | 68 | ->setChallenge($object['challenge']) |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | public function getU2fRegistrationsOnly(): array |
| 111 | 111 | { |
| 112 | 112 | return array_map( |
| 113 | - function ($item) { |
|
| 113 | + function($item) { |
|
| 114 | 114 | return $item['u2fRegistration']; |
| 115 | 115 | }, |
| 116 | 116 | $this->u2fRegistrations |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | |
| 100 | 100 | $formEngine = new TwigRendererEngine([$defaultFormTheme], $twig); |
| 101 | 101 | $twig->addRuntimeLoader(new Twig_FactoryRuntimeLoader([ |
| 102 | - FormRenderer::class => function () use ($formEngine, $csrfManager) { |
|
| 102 | + FormRenderer::class => function() use ($formEngine, $csrfManager) { |
|
| 103 | 103 | return new FormRenderer($formEngine, $csrfManager); |
| 104 | 104 | }, |
| 105 | 105 | ])); |
@@ -115,13 +115,13 @@ discard block |
||
| 115 | 115 | |
| 116 | 116 | $containerBuilder = new ContainerBuilder(); |
| 117 | 117 | $containerBuilder->addDefinitions([ |
| 118 | - IApplicationConfiguration::class => function () use ($appConfig) { |
|
| 118 | + IApplicationConfiguration::class => function() use ($appConfig) { |
|
| 119 | 119 | return $appConfig; |
| 120 | 120 | }, |
| 121 | - Twig_Environment::class => function () use ($twig) { |
|
| 121 | + Twig_Environment::class => function() use ($twig) { |
|
| 122 | 122 | return $twig; |
| 123 | 123 | }, |
| 124 | - FormFactoryInterface::class => function () use ($formFactory) { |
|
| 124 | + FormFactoryInterface::class => function() use ($formFactory) { |
|
| 125 | 125 | return $formFactory; |
| 126 | 126 | }, |
| 127 | 127 | ]); |