@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Lookyman\NetteOAuth2Server; |
5 | 5 |
@@ -7,14 +7,14 @@ |
||
7 | 7 | interface IAuthorizationRequestSerializer |
8 | 8 | { |
9 | 9 | /** |
10 | - * @param AuthorizationRequest $authorizationRequest |
|
11 | - * @return string |
|
12 | - */ |
|
10 | + * @param AuthorizationRequest $authorizationRequest |
|
11 | + * @return string |
|
12 | + */ |
|
13 | 13 | public function serialize(AuthorizationRequest $authorizationRequest): string; |
14 | 14 | |
15 | 15 | /** |
16 | - * @param string $data |
|
17 | - * @return AuthorizationRequest |
|
18 | - */ |
|
16 | + * @param string $data |
|
17 | + * @return AuthorizationRequest |
|
18 | + */ |
|
19 | 19 | public function unserialize(string $data): AuthorizationRequest; |
20 | 20 | } |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Lookyman\NetteOAuth2Server; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Lookyman\NetteOAuth2Server; |
5 | 5 |
@@ -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 | |
@@ -57,10 +57,10 @@ discard block |
||
57 | 57 | $authorizationRequest->setUser(new UserEntity($this->getUser()->getId())); |
58 | 58 | } |
59 | 59 | $control = $this->approveControlFactory->create($authorizationRequest); |
60 | - $control->onAuthorizationComplete[] = function () { |
|
60 | + $control->onAuthorizationComplete[] = function() { |
|
61 | 61 | $this->getSession(OAuth2Presenter::SESSION_NAMESPACE)->remove(); |
62 | 62 | }; |
63 | - $control->onResponse[] = function (ApplicationPsr7ResponseInterface $response) { |
|
63 | + $control->onResponse[] = function(ApplicationPsr7ResponseInterface $response) { |
|
64 | 64 | $this->sendResponse($response); |
65 | 65 | }; |
66 | 66 | return $control; |