@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * The MIT License (MIT) |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | /** |
47 | 47 | * {@inheritdoc} |
48 | 48 | */ |
49 | - public function handle(DataBag $commandParameters, DataBag $validatedParameters, ?UserAccountId $userAccountId, callable $next): DataBag |
|
49 | + public function handle(DataBag $commandParameters, DataBag $validatedParameters, ? UserAccountId $userAccountId, callable $next) : DataBag |
|
50 | 50 | { |
51 | 51 | if ($commandParameters->has('sector_identifier_uri')) { |
52 | 52 | Assertion::url($commandParameters->get('sector_identifier_uri'), sprintf('The sector identifier URI \'%s\' is not valid.', $commandParameters->get('sector_identifier_uri'))); |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * The MIT License (MIT) |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | /** |
219 | 219 | * @return null|ResourceServerId |
220 | 220 | */ |
221 | - public function getResourceServerId(): ?ResourceServerId |
|
221 | + public function getResourceServerId(): ? ResourceServerId |
|
222 | 222 | { |
223 | 223 | return $this->resourceServerId; |
224 | 224 | } |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * The MIT License (MIT) |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | * |
66 | 66 | * @return RefreshToken |
67 | 67 | */ |
68 | - public function create(RefreshTokenId $refreshTokenId, ResourceOwnerId $resourceOwnerId, ClientId $clientId, DataBag $parameters, DataBag $metadatas, array $scopes, \DateTimeImmutable $expiresAt, ?ResourceServerId $resourceServerId): RefreshToken |
|
68 | + public function create(RefreshTokenId $refreshTokenId, ResourceOwnerId $resourceOwnerId, ClientId $clientId, DataBag $parameters, DataBag $metadatas, array $scopes, \DateTimeImmutable $expiresAt, ? ResourceServerId $resourceServerId) : RefreshToken |
|
69 | 69 | { |
70 | 70 | $clone = clone $this; |
71 | 71 | $clone->refreshTokenId = $refreshTokenId; |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * The MIT License (MIT) |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | * |
36 | 36 | * @return RefreshToken |
37 | 37 | */ |
38 | - public function create(ResourceOwnerId $resourceOwnerId, ClientId $clientId, DataBag $parameters, DataBag $metadatas, array $scopes, ?ResourceServerId $resourceServerId, ?\DateTimeImmutable $expiresAt): RefreshToken; |
|
38 | + public function create(ResourceOwnerId $resourceOwnerId, ClientId $clientId, DataBag $parameters, DataBag $metadatas, array $scopes, ? ResourceServerId $resourceServerId, ? \DateTimeImmutable $expiresAt) : RefreshToken; |
|
39 | 39 | |
40 | 40 | /** |
41 | 41 | * @param RefreshToken $refreshToken |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * The MIT License (MIT) |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | * |
67 | 67 | * @return AccessToken |
68 | 68 | */ |
69 | - public function create(AccessTokenId $accessTokenId, ResourceOwnerId $resourceOwnerId, ClientId $clientId, DataBag $parameters, DataBag $metadatas, array $scopes, \DateTimeImmutable $expiresAt, ?RefreshTokenId $refreshTokenId, ?ResourceServerId $resourceServerId) |
|
69 | + public function create(AccessTokenId $accessTokenId, ResourceOwnerId $resourceOwnerId, ClientId $clientId, DataBag $parameters, DataBag $metadatas, array $scopes, \DateTimeImmutable $expiresAt, ? RefreshTokenId $refreshTokenId, ? ResourceServerId $resourceServerId) |
|
70 | 70 | { |
71 | 71 | $clone = clone $this; |
72 | 72 | $clone->accessTokenId = $accessTokenId; |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | /** |
107 | 107 | * @return null|RefreshTokenId |
108 | 108 | */ |
109 | - public function getRefreshTokenId(): ?RefreshTokenId |
|
109 | + public function getRefreshTokenId(): ? RefreshTokenId |
|
110 | 110 | { |
111 | 111 | return $this->refreshTokenId; |
112 | 112 | } |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * The MIT License (MIT) |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | * |
34 | 34 | * @return AccessToken |
35 | 35 | */ |
36 | - public function create(ResourceOwnerId $resourceOwnerId, ClientId $clientId, DataBag $parameters, DataBag $metadatas, array $scopes, ?RefreshTokenId $refreshTokenId, ?ResourceServerId $resourceServerId, ?\DateTimeImmutable $expiresAt): AccessToken; |
|
36 | + public function create(ResourceOwnerId $resourceOwnerId, ClientId $clientId, DataBag $parameters, DataBag $metadatas, array $scopes, ? RefreshTokenId $refreshTokenId, ? ResourceServerId $resourceServerId, ? \DateTimeImmutable $expiresAt) : AccessToken; |
|
37 | 37 | |
38 | 38 | /** |
39 | 39 | * @param AccessToken $token |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * The MIT License (MIT) |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | * |
61 | 61 | * @return InitialAccessToken |
62 | 62 | */ |
63 | - public function create(InitialAccessTokenId $initialAccessTokenId, ?UserAccountId $userAccountId, ?\DateTimeImmutable $expiresAt): InitialAccessToken |
|
63 | + public function create(InitialAccessTokenId $initialAccessTokenId, ? UserAccountId $userAccountId, ? \DateTimeImmutable $expiresAt) : InitialAccessToken |
|
64 | 64 | { |
65 | 65 | $clone = clone $this; |
66 | 66 | $clone->initialAccessTokenId = $initialAccessTokenId; |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | /** |
87 | 87 | * @return UserAccountId|null |
88 | 88 | */ |
89 | - public function getUserAccountId(): ?UserAccountId |
|
89 | + public function getUserAccountId(): ? UserAccountId |
|
90 | 90 | { |
91 | 91 | return $this->userAccountId; |
92 | 92 | } |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | /** |
95 | 95 | * @return \DateTimeImmutable|null |
96 | 96 | */ |
97 | - public function getExpiresAt(): ?\DateTimeImmutable |
|
97 | + public function getExpiresAt(): ? \DateTimeImmutable |
|
98 | 98 | { |
99 | 99 | return $this->expiresAt; |
100 | 100 | } |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * The MIT License (MIT) |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | * |
24 | 24 | * @return InitialAccessToken |
25 | 25 | */ |
26 | - public function create(?UserAccountId $userAccountId, ?\DateTimeImmutable $expiresAt): InitialAccessToken; |
|
26 | + public function create(? UserAccountId $userAccountId, ? \DateTimeImmutable $expiresAt) : InitialAccessToken; |
|
27 | 27 | |
28 | 28 | /** |
29 | 29 | * @param InitialAccessToken $initialAccessToken |
@@ -38,5 +38,5 @@ discard block |
||
38 | 38 | * |
39 | 39 | * @return InitialAccessToken|null Return the initial access token or null if the argument is not a valid initial access token |
40 | 40 | */ |
41 | - public function find(InitialAccessTokenId $initialAccessTokenId): ?InitialAccessToken; |
|
41 | + public function find(InitialAccessTokenId $initialAccessTokenId): ? InitialAccessToken; |
|
42 | 42 | } |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * The MIT License (MIT) |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | * |
78 | 78 | * @return IdToken|null |
79 | 79 | */ |
80 | - public function load(IdTokenId $idTokenId): ?IdToken |
|
80 | + public function load(IdTokenId $idTokenId): ? IdToken |
|
81 | 81 | { |
82 | 82 | try { |
83 | 83 | $jwt = $this->jwtLoader->load($idTokenId->getValue()); |