@@ -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; |
@@ -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 EventId|null $eventId |
| 42 | 42 | */ |
| 43 | - protected function __construct(ClientId $clientId, UserAccountId $newOwnerId, ?\DateTimeImmutable $recordedOn, ?EventId $eventId) |
|
| 43 | + protected function __construct(ClientId $clientId, UserAccountId $newOwnerId, ? \DateTimeImmutable $recordedOn, ? EventId $eventId) |
|
| 44 | 44 | { |
| 45 | 45 | parent::__construct($recordedOn, $eventId); |
| 46 | 46 | $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) |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | * @param \DateTimeImmutable|null $recordedOn |
| 48 | 48 | * @param EventId|null $eventId |
| 49 | 49 | */ |
| 50 | - protected function __construct(ClientId $clientId, DataBag $parameters, ?UserAccountId $userAccountId, ?\DateTimeImmutable $recordedOn, ?EventId $eventId) |
|
| 50 | + protected function __construct(ClientId $clientId, DataBag $parameters, ? UserAccountId $userAccountId, ? \DateTimeImmutable $recordedOn, ? EventId $eventId) |
|
| 51 | 51 | { |
| 52 | 52 | parent::__construct($recordedOn, $eventId); |
| 53 | 53 | $this->clientId = $clientId; |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | * |
| 63 | 63 | * @return ClientCreatedEvent |
| 64 | 64 | */ |
| 65 | - public static function create(ClientId $clientId, DataBag $parameters, ?UserAccountId $userAccountId): ClientCreatedEvent |
|
| 65 | + public static function create(ClientId $clientId, DataBag $parameters, ? UserAccountId $userAccountId) : ClientCreatedEvent |
|
| 66 | 66 | { |
| 67 | 67 | return new self($clientId, $parameters, $userAccountId, null, null); |
| 68 | 68 | } |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | /** |
| 134 | 134 | * @return null|UserAccountId |
| 135 | 135 | */ |
| 136 | - public function getOwnerId(): ?UserAccountId |
|
| 136 | + public function getOwnerId(): ? UserAccountId |
|
| 137 | 137 | { |
| 138 | 138 | return $this->userAccountId; |
| 139 | 139 | } |
@@ -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) |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | * @param \DateTimeImmutable|null $recordedOn |
| 80 | 80 | * @param null|EventId $eventId |
| 81 | 81 | */ |
| 82 | - protected function __construct(RefreshTokenId $refreshTokenId, ResourceOwnerId $resourceOwnerId, ClientId $clientId, DataBag $parameters, DataBag $metadatas, \DateTimeImmutable $expiresAt, array $scopes, ?ResourceServerId $resourceServerId, ?\DateTimeImmutable $recordedOn, ?EventId $eventId) |
|
| 82 | + protected function __construct(RefreshTokenId $refreshTokenId, ResourceOwnerId $resourceOwnerId, ClientId $clientId, DataBag $parameters, DataBag $metadatas, \DateTimeImmutable $expiresAt, array $scopes, ? ResourceServerId $resourceServerId, ? \DateTimeImmutable $recordedOn, ? EventId $eventId) |
|
| 83 | 83 | { |
| 84 | 84 | parent::__construct($recordedOn, $eventId); |
| 85 | 85 | $this->refreshTokenId = $refreshTokenId; |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | * |
| 113 | 113 | * @return RefreshTokenCreatedEvent |
| 114 | 114 | */ |
| 115 | - public static function create(RefreshTokenId $refreshTokenId, ResourceOwnerId $resourceOwnerId, ClientId $clientId, DataBag $parameters, DataBag $metadatas, \DateTimeImmutable $expiresAt, array $scopes, ?ResourceServerId $resourceServerId): RefreshTokenCreatedEvent |
|
| 115 | + public static function create(RefreshTokenId $refreshTokenId, ResourceOwnerId $resourceOwnerId, ClientId $clientId, DataBag $parameters, DataBag $metadatas, \DateTimeImmutable $expiresAt, array $scopes, ? ResourceServerId $resourceServerId) : RefreshTokenCreatedEvent |
|
| 116 | 116 | { |
| 117 | 117 | return new self($refreshTokenId, $resourceOwnerId, $clientId, $parameters, $metadatas, $expiresAt, $scopes, $resourceServerId, null, null); |
| 118 | 118 | } |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | /** |
| 177 | 177 | * @return ResourceServerId |
| 178 | 178 | */ |
| 179 | - public function getResourceServerId(): ?ResourceServerId |
|
| 179 | + public function getResourceServerId(): ? ResourceServerId |
|
| 180 | 180 | { |
| 181 | 181 | return $this->resourceServerId; |
| 182 | 182 | } |
@@ -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 null|EventId $eventId |
| 35 | 35 | */ |
| 36 | - protected function __construct(RefreshTokenId $refreshTokenId, ?\DateTimeImmutable $recordedOn, ?EventId $eventId) |
|
| 36 | + protected function __construct(RefreshTokenId $refreshTokenId, ? \DateTimeImmutable $recordedOn, ? EventId $eventId) |
|
| 37 | 37 | { |
| 38 | 38 | parent::__construct($recordedOn, $eventId); |
| 39 | 39 | $this->refreshTokenId = $refreshTokenId; |