@@ -49,7 +49,7 @@ |
||
49 | 49 | new Route('/auth/<action>', new Controller(AuthController::class)) |
50 | 50 | ); |
51 | 51 | |
52 | - $views->addDirectory('custom', __DIR__ . '/../../views/custom/'); |
|
52 | + $views->addDirectory('custom', __DIR__.'/../../views/custom/'); |
|
53 | 53 | $views->addEngine(TestEngine::class); |
54 | 54 | |
55 | 55 | $validation->addAlias('aliased', 'notEmpty'); |
@@ -21,7 +21,7 @@ |
||
21 | 21 | { |
22 | 22 | public function boot(EnvironmentInterface $env, BootloadManager $bootloadManager): void |
23 | 23 | { |
24 | - if ($env->get('CYCLE_AUTH')) { |
|
24 | + if ($env->get('CYCLE_AUTH')){ |
|
25 | 25 | $bootloadManager->bootload([CycleTokensBootloader::class]); |
26 | 26 | return; |
27 | 27 | } |
@@ -21,7 +21,8 @@ |
||
21 | 21 | { |
22 | 22 | public function boot(EnvironmentInterface $env, BootloadManager $bootloadManager): void |
23 | 23 | { |
24 | - if ($env->get('CYCLE_AUTH')) { |
|
24 | + if ($env->get('CYCLE_AUTH')) |
|
25 | + { |
|
25 | 26 | $bootloadManager->bootload([CycleTokensBootloader::class]); |
26 | 27 | return; |
27 | 28 | } |
@@ -28,7 +28,7 @@ |
||
28 | 28 | |
29 | 29 | public function tokenAction(AuthContextInterface $authContext) |
30 | 30 | { |
31 | - if ($authContext->getToken() !== null) { |
|
31 | + if ($authContext->getToken() !== null){ |
|
32 | 32 | return $authContext->getToken()->getID(); |
33 | 33 | } |
34 | 34 |
@@ -28,7 +28,8 @@ |
||
28 | 28 | |
29 | 29 | public function tokenAction(AuthContextInterface $authContext) |
30 | 30 | { |
31 | - if ($authContext->getToken() !== null) { |
|
31 | + if ($authContext->getToken() !== null) |
|
32 | + { |
|
32 | 33 | return $authContext->getToken()->getID(); |
33 | 34 | } |
34 | 35 |