@@ -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) |
@@ -56,13 +56,13 @@ discard block |
||
| 56 | 56 | private function callableForNextRule(int $index): \Closure |
| 57 | 57 | { |
| 58 | 58 | if (!isset($this->processors[$index])) { |
| 59 | - return function (ServerRequestInterface $request, GrantTypeData $grantTypeData, GrantTypeInterface $grantType): GrantTypeData { |
|
| 59 | + return function(ServerRequestInterface $request, GrantTypeData $grantTypeData, GrantTypeInterface $grantType): GrantTypeData { |
|
| 60 | 60 | return $grantType->grant($request, $grantTypeData); |
| 61 | 61 | }; |
| 62 | 62 | } |
| 63 | 63 | $processor = $this->processors[$index]; |
| 64 | 64 | |
| 65 | - return function (ServerRequestInterface $request, GrantTypeData $grantTypeData, GrantTypeInterface $grantType) use ($processor, $index): GrantTypeData { |
|
| 65 | + return function(ServerRequestInterface $request, GrantTypeData $grantTypeData, GrantTypeInterface $grantType) use ($processor, $index): GrantTypeData { |
|
| 66 | 66 | return $processor($request, $grantTypeData, $grantType, $this->callableForNextRule($index + 1)); |
| 67 | 67 | }; |
| 68 | 68 | } |
@@ -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) |
@@ -30,5 +30,5 @@ discard block |
||
| 30 | 30 | * |
| 31 | 31 | * @return string|null |
| 32 | 32 | */ |
| 33 | - public function getPublicIdFromSubjectIdentifier(string $subjectIdentifier): ?string; |
|
| 33 | + public function getPublicIdFromSubjectIdentifier(string $subjectIdentifier): ? string; |
|
| 34 | 34 | } |
@@ -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) |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | * @param null|string $iv |
| 48 | 48 | * @param string $salt |
| 49 | 49 | */ |
| 50 | - public function __construct(string $pairwiseEncryptionKey, string $algorithm, string $salt, ?string $iv) |
|
| 50 | + public function __construct(string $pairwiseEncryptionKey, string $algorithm, string $salt, ? string $iv) |
|
| 51 | 51 | { |
| 52 | 52 | Assertion::inArray($algorithm, openssl_get_cipher_methods(), sprintf('The algorithm \'%s\' is not supported.', $algorithm)); |
| 53 | 53 | $this->pairwiseEncryptionKey = $pairwiseEncryptionKey; |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | /** |
| 75 | 75 | * {@inheritdoc} |
| 76 | 76 | */ |
| 77 | - public function getPublicIdFromSubjectIdentifier(string $subjectIdentifier): ?string |
|
| 77 | + public function getPublicIdFromSubjectIdentifier(string $subjectIdentifier): ? string |
|
| 78 | 78 | { |
| 79 | 79 | $decoded = openssl_decrypt(Base64Url::decode($subjectIdentifier), $this->algorithm, $this->pairwiseEncryptionKey, OPENSSL_RAW_DATA, $this->iv); |
| 80 | 80 | $parts = explode(':', $decoded); |
@@ -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) |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | * |
| 102 | 102 | * @return string |
| 103 | 103 | */ |
| 104 | - private function buildUserinfoContent(Client $client, UserAccountInterface $userAccount, AccessToken $accessToken, ?bool &$isJwt): string |
|
| 104 | + private function buildUserinfoContent(Client $client, UserAccountInterface $userAccount, AccessToken $accessToken, ? bool & $isJwt) : string |
|
| 105 | 105 | { |
| 106 | 106 | $isJwt = false; |
| 107 | 107 | $requestedClaims = $this->getEndpointClaims($accessToken); |
@@ -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) |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | * |
| 65 | 65 | * @return array |
| 66 | 66 | */ |
| 67 | - public function getUserinfo(Client $client, UserAccountInterface $userAccount, string $redirectUri, array $requestClaims, array $scopes, ?string $claimsLocales): array |
|
| 67 | + public function getUserinfo(Client $client, UserAccountInterface $userAccount, string $redirectUri, array $requestClaims, array $scopes, ? string $claimsLocales) : array |
|
| 68 | 68 | { |
| 69 | 69 | $requestClaims = array_merge( |
| 70 | 70 | $this->getClaimsFromClaimScope($scopes), |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | * |
| 109 | 109 | * @return array |
| 110 | 110 | */ |
| 111 | - private function getClaimValues(UserAccountInterface $userAccount, array $claims, ?string $claimsLocales): array |
|
| 111 | + private function getClaimValues(UserAccountInterface $userAccount, array $claims, ? string $claimsLocales) : array |
|
| 112 | 112 | { |
| 113 | 113 | $result = []; |
| 114 | 114 | if (null === $claimsLocales) { |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | /** |
| 185 | 185 | * @return PairwiseSubjectIdentifierAlgorithmInterface|null |
| 186 | 186 | */ |
| 187 | - public function getPairwiseSubjectIdentifierAlgorithm(): ?PairwiseSubjectIdentifierAlgorithmInterface |
|
| 187 | + public function getPairwiseSubjectIdentifierAlgorithm(): ? PairwiseSubjectIdentifierAlgorithmInterface |
|
| 188 | 188 | { |
| 189 | 189 | return $this->pairwiseAlgorithm; |
| 190 | 190 | } |
@@ -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 | * @param \DateTimeImmutable|null $recordedOn |
| 34 | 34 | * @param EventId|null $eventId |
| 35 | 35 | */ |
| 36 | - protected function __construct(AuthCodeId $authCodeId, ?\DateTimeImmutable $recordedOn, ?EventId $eventId) |
|
| 36 | + protected function __construct(AuthCodeId $authCodeId, ? \DateTimeImmutable $recordedOn, ? EventId $eventId) |
|
| 37 | 37 | { |
| 38 | 38 | parent::__construct($recordedOn, $eventId); |
| 39 | 39 | $this->authCodeId = $authCodeId; |
@@ -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) |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | * @param \DateTimeImmutable|null $recordedOn |
| 98 | 98 | * @param EventId|null $eventId |
| 99 | 99 | */ |
| 100 | - protected function __construct(AuthCodeId $authCodeId, ClientId $clientId, UserAccountId $userAccountId, array $queryParameters, string $redirectUri, \DateTimeImmutable $expiresAt, DataBag $parameters, DataBag $metadatas, array $scopes, bool $withRefreshToken, ?ResourceServerId $resourceServerId, ?\DateTimeImmutable $recordedOn, ?EventId $eventId) |
|
| 100 | + protected function __construct(AuthCodeId $authCodeId, ClientId $clientId, UserAccountId $userAccountId, array $queryParameters, string $redirectUri, \DateTimeImmutable $expiresAt, DataBag $parameters, DataBag $metadatas, array $scopes, bool $withRefreshToken, ? ResourceServerId $resourceServerId, ? \DateTimeImmutable $recordedOn, ? EventId $eventId) |
|
| 101 | 101 | { |
| 102 | 102 | parent::__construct($recordedOn, $eventId); |
| 103 | 103 | $this->authCodeId = $authCodeId; |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | * |
| 137 | 137 | * @return AuthCodeCreatedEvent |
| 138 | 138 | */ |
| 139 | - public static function create(AuthCodeId $authCodeId, ClientId $clientId, UserAccountId $userAccountId, array $queryParameters, string $redirectUri, \DateTimeImmutable $expiresAt, DataBag $parameters, DataBag $metadatas, array $scopes, bool $withRefreshToken, ?ResourceServerId $resourceServerId): AuthCodeCreatedEvent |
|
| 139 | + public static function create(AuthCodeId $authCodeId, ClientId $clientId, UserAccountId $userAccountId, array $queryParameters, string $redirectUri, \DateTimeImmutable $expiresAt, DataBag $parameters, DataBag $metadatas, array $scopes, bool $withRefreshToken, ? ResourceServerId $resourceServerId) : AuthCodeCreatedEvent |
|
| 140 | 140 | { |
| 141 | 141 | return new self($authCodeId, $clientId, $userAccountId, $queryParameters, $redirectUri, $expiresAt, $parameters, $metadatas, $scopes, $withRefreshToken, $resourceServerId, null, null); |
| 142 | 142 | } |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | /** |
| 217 | 217 | * @return ResourceServerId|null |
| 218 | 218 | */ |
| 219 | - public function getResourceServerId(): ?ResourceServerId |
|
| 219 | + public function getResourceServerId(): ? ResourceServerId |
|
| 220 | 220 | { |
| 221 | 221 | return $this->resourceServerId; |
| 222 | 222 | } |
@@ -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 | * @param \DateTimeImmutable|null $recordedOn |
| 34 | 34 | * @param EventId|null $eventId |
| 35 | 35 | */ |
| 36 | - protected function __construct(ClientId $clientId, ?\DateTimeImmutable $recordedOn, ?EventId $eventId) |
|
| 36 | + protected function __construct(ClientId $clientId, ? \DateTimeImmutable $recordedOn, ? EventId $eventId) |
|
| 37 | 37 | { |
| 38 | 38 | parent::__construct($recordedOn, $eventId); |
| 39 | 39 | $this->clientId = $clientId; |
@@ -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) |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | * @param \DateTimeImmutable|null $recordedOn |
| 41 | 41 | * @param null|EventId $eventId |
| 42 | 42 | */ |
| 43 | - protected function __construct(ClientId $clientId, DataBag $parameters, ?\DateTimeImmutable $recordedOn, ?EventId $eventId) |
|
| 43 | + protected function __construct(ClientId $clientId, DataBag $parameters, ? \DateTimeImmutable $recordedOn, ? EventId $eventId) |
|
| 44 | 44 | { |
| 45 | 45 | parent::__construct($recordedOn, $eventId); |
| 46 | 46 | $this->clientId = $clientId; |