@@ -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(AccessTokenId $accessTokenId, ?\DateTimeImmutable $recordedOn, ?EventId $eventId) |
|
| 36 | + protected function __construct(AccessTokenId $accessTokenId, ? \DateTimeImmutable $recordedOn, ? EventId $eventId) |
|
| 37 | 37 | { |
| 38 | 38 | parent::__construct($recordedOn, $eventId); |
| 39 | 39 | $this->accessTokenId = $accessTokenId; |
@@ -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 | * @param \DateTimeImmutable|null $recordedOn |
| 87 | 87 | * @param EventId|null $eventId |
| 88 | 88 | */ |
| 89 | - protected function __construct(AccessTokenId $accessTokenId, ResourceOwnerId $resourceOwnerId, ClientId $clientId, DataBag $parameters, DataBag $metadatas, array $scopes, \DateTimeImmutable $expiresAt, ?RefreshTokenId $refreshTokenId, ?ResourceServerId $resourceServerId, ?\DateTimeImmutable $recordedOn, ?EventId $eventId) |
|
| 89 | + protected function __construct(AccessTokenId $accessTokenId, ResourceOwnerId $resourceOwnerId, ClientId $clientId, DataBag $parameters, DataBag $metadatas, array $scopes, \DateTimeImmutable $expiresAt, ? RefreshTokenId $refreshTokenId, ? ResourceServerId $resourceServerId, ? \DateTimeImmutable $recordedOn, ? EventId $eventId) |
|
| 90 | 90 | { |
| 91 | 91 | parent::__construct($recordedOn, $eventId); |
| 92 | 92 | $this->accessTokenId = $accessTokenId; |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | * |
| 122 | 122 | * @return AccessTokenCreatedEvent |
| 123 | 123 | */ |
| 124 | - public static function create(AccessTokenId $accessTokenId, ResourceOwnerId $resourceOwnerId, ClientId $clientId, DataBag $parameters, DataBag $metadatas, array $scopes, \DateTimeImmutable $expiresAt, ?RefreshTokenId $refreshTokenId, ?ResourceServerId $resourceServerId): AccessTokenCreatedEvent |
|
| 124 | + public static function create(AccessTokenId $accessTokenId, ResourceOwnerId $resourceOwnerId, ClientId $clientId, DataBag $parameters, DataBag $metadatas, array $scopes, \DateTimeImmutable $expiresAt, ? RefreshTokenId $refreshTokenId, ? ResourceServerId $resourceServerId) : AccessTokenCreatedEvent |
|
| 125 | 125 | { |
| 126 | 126 | return new self($accessTokenId, $resourceOwnerId, $clientId, $parameters, $metadatas, $scopes, $expiresAt, $refreshTokenId, $resourceServerId, null, null); |
| 127 | 127 | } |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | /** |
| 159 | 159 | * @return null|RefreshTokenId |
| 160 | 160 | */ |
| 161 | - public function getRefreshTokenId(): ?RefreshTokenId |
|
| 161 | + public function getRefreshTokenId(): ? RefreshTokenId |
|
| 162 | 162 | { |
| 163 | 163 | return $this->refreshTokenId; |
| 164 | 164 | } |
@@ -214,7 +214,7 @@ discard block |
||
| 214 | 214 | /** |
| 215 | 215 | * @return null|ResourceServerId |
| 216 | 216 | */ |
| 217 | - public function getResourceServerId(): ?ResourceServerId |
|
| 217 | + public function getResourceServerId(): ? ResourceServerId |
|
| 218 | 218 | { |
| 219 | 219 | return $this->resourceServerId; |
| 220 | 220 | } |
@@ -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 | * @param \DateTimeImmutable|null $recordedOn |
| 47 | 47 | * @param EventId|null $eventId |
| 48 | 48 | */ |
| 49 | - protected function __construct(InitialAccessTokenId $initialAccessTokenId, ?UserAccountId $userAccountId, ?\DateTimeImmutable $expiresAt, ?\DateTimeImmutable $recordedOn, ?EventId $eventId) |
|
| 49 | + protected function __construct(InitialAccessTokenId $initialAccessTokenId, ? UserAccountId $userAccountId, ? \DateTimeImmutable $expiresAt, ? \DateTimeImmutable $recordedOn, ? EventId $eventId) |
|
| 50 | 50 | { |
| 51 | 51 | parent::__construct($recordedOn, $eventId); |
| 52 | 52 | $this->initialAccessTokenId = $initialAccessTokenId; |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | * |
| 70 | 70 | * @return InitialAccessTokenCreatedEvent |
| 71 | 71 | */ |
| 72 | - public static function create(InitialAccessTokenId $initialAccessTokenId, ?UserAccountId $userAccountId, ?\DateTimeImmutable $expiresAt): InitialAccessTokenCreatedEvent |
|
| 72 | + public static function create(InitialAccessTokenId $initialAccessTokenId, ? UserAccountId $userAccountId, ? \DateTimeImmutable $expiresAt) : InitialAccessTokenCreatedEvent |
|
| 73 | 73 | { |
| 74 | 74 | return new self($initialAccessTokenId, $userAccountId, $expiresAt, null, null); |
| 75 | 75 | } |
@@ -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(InitialAccessTokenId $initialAccessTokenId, ?\DateTimeImmutable $recordedOn, ?EventId $eventId) |
|
| 36 | + protected function __construct(InitialAccessTokenId $initialAccessTokenId, ? \DateTimeImmutable $recordedOn, ? EventId $eventId) |
|
| 37 | 37 | { |
| 38 | 38 | parent::__construct($recordedOn, $eventId); |
| 39 | 39 | $this->initialAccessTokenId = $initialAccessTokenId; |
@@ -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) |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | * @param \DateTimeImmutable|null $recordedOn |
| 54 | 54 | * @param EventId|null $eventId |
| 55 | 55 | */ |
| 56 | - protected function __construct(PreConfiguredAuthorizationId $preConfiguredAuthorizationId, ClientId $clientId, UserAccountId $userAccountId, array $scopes, ?\DateTimeImmutable $recordedOn, ?EventId $eventId) |
|
| 56 | + protected function __construct(PreConfiguredAuthorizationId $preConfiguredAuthorizationId, ClientId $clientId, UserAccountId $userAccountId, array $scopes, ? \DateTimeImmutable $recordedOn, ? EventId $eventId) |
|
| 57 | 57 | { |
| 58 | 58 | parent::__construct($recordedOn, $eventId); |
| 59 | 59 | $this->preConfiguredAuthorizationId = $preConfiguredAuthorizationId; |
@@ -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(PreConfiguredAuthorizationId $preConfiguredAuthorizationId, ?\DateTimeImmutable $recordedOn, ?EventId $eventId) |
|
| 36 | + protected function __construct(PreConfiguredAuthorizationId $preConfiguredAuthorizationId, ? \DateTimeImmutable $recordedOn, ? EventId $eventId) |
|
| 37 | 37 | { |
| 38 | 38 | parent::__construct($recordedOn, $eventId); |
| 39 | 39 | $this->preConfiguredAuthorizationId = $preConfiguredAuthorizationId; |
@@ -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) |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | * |
| 90 | 90 | * @return string|null |
| 91 | 91 | */ |
| 92 | - public function findToken(ServerRequestInterface $request, array &$additionalCredentialValues, TokenTypeInterface &$type = null) |
|
| 92 | + public function findToken(ServerRequestInterface $request, array &$additionalCredentialValues, TokenTypeInterface & $type = null) |
|
| 93 | 93 | { |
| 94 | 94 | foreach ($this->all() as $tmp_type) { |
| 95 | 95 | $tmpAdditionalCredentialValues = []; |
@@ -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) |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | * |
| 209 | 209 | * @return ResourceOwnerId|null |
| 210 | 210 | */ |
| 211 | - private function findResourceOwner(string $subject): ?ResourceOwnerId |
|
| 211 | + private function findResourceOwner(string $subject): ? ResourceOwnerId |
|
| 212 | 212 | { |
| 213 | 213 | $userAccount = $this->userAccountRepository->findUserAccount(UserAccountId::create($subject)); |
| 214 | 214 | if (null !== $userAccount) { |
@@ -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) |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | * |
| 83 | 83 | * @return AuthCode |
| 84 | 84 | */ |
| 85 | - public function create(AuthCodeId $authCodeId, ClientId $clientId, UserAccountId $userAccountId, array $queryParameters, string $redirectUri, \DateTimeImmutable $expiresAt, DataBag $parameters, DataBag $metadatas, array $scopes, bool $withRefreshToken, ?ResourceServerId $resourceServerId) |
|
| 85 | + public function create(AuthCodeId $authCodeId, ClientId $clientId, UserAccountId $userAccountId, array $queryParameters, string $redirectUri, \DateTimeImmutable $expiresAt, DataBag $parameters, DataBag $metadatas, array $scopes, bool $withRefreshToken, ? ResourceServerId $resourceServerId) |
|
| 86 | 86 | { |
| 87 | 87 | $clone = clone $this; |
| 88 | 88 | $clone->authCodeId = $authCodeId; |