@@ -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 @@ 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 | } |
@@ -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 | |