@@ -1,6 +1,6 @@ |
||
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) |
@@ -1,6 +1,6 @@ |
||
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) |
@@ -1,6 +1,6 @@ |
||
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) |
@@ -1,6 +1,6 @@ |
||
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) |
@@ -1,6 +1,6 @@ |
||
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) |
@@ -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) |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | /** |
87 | 87 | * {@inheritdoc} |
88 | 88 | */ |
89 | - public function create(ResourceOwnerId $resourceOwnerId, ClientId $clientId, DataBag $parameters, DataBag $metadatas, array $scopes, ?ResourceServerId $resourceServerId, ?\DateTimeImmutable $expiresAt): RefreshToken |
|
89 | + public function create(ResourceOwnerId $resourceOwnerId, ClientId $clientId, DataBag $parameters, DataBag $metadatas, array $scopes, ? ResourceServerId $resourceServerId, ? \DateTimeImmutable $expiresAt) : RefreshToken |
|
90 | 90 | { |
91 | 91 | if (null === $expiresAt) { |
92 | 92 | $expiresAt = new \DateTimeImmutable(sprintf('now +%u seconds', $this->lifetime)); |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | * |
156 | 156 | * @return RefreshToken|null |
157 | 157 | */ |
158 | - private function getFromCache(RefreshTokenId $refreshTokenId): ?RefreshToken |
|
158 | + private function getFromCache(RefreshTokenId $refreshTokenId): ? RefreshToken |
|
159 | 159 | { |
160 | 160 | $itemKey = sprintf('oauth2-refresh_token-%s', $refreshTokenId->getValue()); |
161 | 161 | if (null !== $this->cache) { |
@@ -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) |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | /** |
109 | 109 | * {@inheritdoc} |
110 | 110 | */ |
111 | - public function create(ResourceOwnerId $resourceOwnerId, ClientId $clientId, DataBag $parameters, DataBag $metadatas, array $scopes, ?RefreshTokenId $refreshTokenId, ?ResourceServerId $resourceServerId , ?\DateTimeImmutable $expiresAt): AccessToken |
|
111 | + public function create(ResourceOwnerId $resourceOwnerId, ClientId $clientId, DataBag $parameters, DataBag $metadatas, array $scopes, ? RefreshTokenId $refreshTokenId, ? ResourceServerId $resourceServerId, ? \DateTimeImmutable $expiresAt) : AccessToken |
|
112 | 112 | { |
113 | 113 | if (null === $expiresAt) { |
114 | 114 | $expiresAt = new \DateTimeImmutable(sprintf('now +%u seconds', $this->lifetime)); |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | * |
128 | 128 | * @return AccessToken|null |
129 | 129 | */ |
130 | - private function getFromCache(AccessTokenId $accessTokenId): ?AccessToken |
|
130 | + private function getFromCache(AccessTokenId $accessTokenId): ? AccessToken |
|
131 | 131 | { |
132 | 132 | $itemKey = sprintf('oauth2-access_token-%s', $accessTokenId->getValue()); |
133 | 133 | if (null !== $this->cache) { |
@@ -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 | $name = $scopePolicy->name(); |
61 | 61 | $this->scopePolicies[$name] = $scopePolicy; |
62 | 62 | |
63 | - if (true === $isDefault ) { |
|
63 | + if (true === $isDefault) { |
|
64 | 64 | $this->defaultScopePolicy = $name; |
65 | 65 | } |
66 | 66 |
@@ -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) |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | /** |
53 | 53 | * {@inheritdoc} |
54 | 54 | */ |
55 | - public function find(ClientId $clientId): ?Client |
|
55 | + public function find(ClientId $clientId): ? Client |
|
56 | 56 | { |
57 | 57 | $client = $this->getFromCache($clientId); |
58 | 58 | if (null === $client) { |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | * |
98 | 98 | * @return Client|null |
99 | 99 | */ |
100 | - private function getFromCache(ClientId $clientId): ?Client |
|
100 | + private function getFromCache(ClientId $clientId): ? Client |
|
101 | 101 | { |
102 | 102 | $itemKey = sprintf('oauth2-client-%s', $clientId->getValue()); |
103 | 103 | if (null !== $this->cache) { |