@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Lookyman\NetteOAuth2Server\UI; |
5 | 5 | |
@@ -43,15 +43,15 @@ discard block |
||
43 | 43 | { |
44 | 44 | $control = $this->approveControlFactory->create(); |
45 | 45 | |
46 | - $control->onAuthorizationComplete[] = function () { |
|
46 | + $control->onAuthorizationComplete[] = function() { |
|
47 | 47 | $this->getSession(OAuth2Presenter::SESSION_NAMESPACE)->remove(); |
48 | 48 | }; |
49 | 49 | |
50 | - $control->onResponse[] = function (ApplicationPsr7ResponseInterface $response) { |
|
50 | + $control->onResponse[] = function(ApplicationPsr7ResponseInterface $response) { |
|
51 | 51 | $this->sendResponse($response); |
52 | 52 | }; |
53 | 53 | |
54 | - $control->onAnchor[] = function (ApproveControl $control) { |
|
54 | + $control->onAnchor[] = function(ApproveControl $control) { |
|
55 | 55 | if (!$this->getUser()->isLoggedIn()) { |
56 | 56 | $this->redirect(...$this->redirectConfig->getLoginDestination()); |
57 | 57 | } |