@@ -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; |
@@ -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) |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | * |
35 | 35 | * @return AuthCode |
36 | 36 | */ |
37 | - public function create(ClientId $clientId, UserAccountId $userAccountId, array $queryParameters, string $redirectUri, DataBag $parameters, DataBag $metadatas, array $scopes, bool $withRefreshToken, ?ResourceServerId $resourceServerId, ?\DateTimeImmutable $expiresAt): AuthCode; |
|
37 | + public function create(ClientId $clientId, UserAccountId $userAccountId, array $queryParameters, string $redirectUri, DataBag $parameters, DataBag $metadatas, array $scopes, bool $withRefreshToken, ? ResourceServerId $resourceServerId, ? \DateTimeImmutable $expiresAt) : AuthCode; |
|
38 | 38 | |
39 | 39 | /** |
40 | 40 | * @param AuthCode $authCode |
@@ -50,5 +50,5 @@ discard block |
||
50 | 50 | * |
51 | 51 | * @see http://tools.ietf.org/html/rfc6749#section-4.1 |
52 | 52 | */ |
53 | - public function find(AuthCodeId $authCodeId): ?AuthCode; |
|
53 | + public function find(AuthCodeId $authCodeId): ? AuthCode; |
|
54 | 54 | } |
@@ -38,6 +38,7 @@ |
||
38 | 38 | |
39 | 39 | /** |
40 | 40 | * @param AuthCode $authCode |
41 | + * @return void |
|
41 | 42 | */ |
42 | 43 | public function save(AuthCode $authCode); |
43 | 44 |
@@ -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 | * @param \DateTimeImmutable|null $recordedOn |
36 | 36 | * @param EventId|null $eventId |
37 | 37 | */ |
38 | - protected function __construct(?\DateTimeImmutable $recordedOn, ?EventId $eventId) |
|
38 | + protected function __construct(? \DateTimeImmutable $recordedOn, ? EventId $eventId) |
|
39 | 39 | { |
40 | 40 | if (null === $recordedOn || null === $eventId) { |
41 | 41 | $this->recordedOn = new \DateTimeImmutable(); |