@@ -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 | } |
@@ -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(); |
@@ -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) |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | * |
| 91 | 91 | * @return Client |
| 92 | 92 | */ |
| 93 | - public function create(ClientId $clientId, DataBag $parameters, ?UserAccountId $ownerId): Client |
|
| 93 | + public function create(ClientId $clientId, DataBag $parameters, ? UserAccountId $ownerId) : Client |
|
| 94 | 94 | { |
| 95 | 95 | $clone = clone $this; |
| 96 | 96 | $clone->clientId = $clientId; |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | /** |
| 107 | 107 | * @return UserAccountId|null |
| 108 | 108 | */ |
| 109 | - public function getOwnerId(): ?UserAccountId |
|
| 109 | + public function getOwnerId(): ? UserAccountId |
|
| 110 | 110 | { |
| 111 | 111 | return $this->ownerId; |
| 112 | 112 | } |
@@ -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) |
@@ -29,5 +29,5 @@ discard block |
||
| 29 | 29 | * |
| 30 | 30 | * @return null|Client return the client object or null if no client is found |
| 31 | 31 | */ |
| 32 | - public function find(ClientId $clientId): ?Client; |
|
| 32 | + public function find(ClientId $clientId): ? Client; |
|
| 33 | 33 | } |
@@ -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) |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | * |
| 25 | 25 | * @return array |
| 26 | 26 | */ |
| 27 | - protected function getInternationalizedParameters(DataBag $requestedParameters, string $base, ?\Closure $closure): array |
|
| 27 | + protected function getInternationalizedParameters(DataBag $requestedParameters, string $base, ? \Closure $closure) : array |
|
| 28 | 28 | { |
| 29 | 29 | $result = []; |
| 30 | 30 | foreach ($requestedParameters->all() as $k => $v) { |
@@ -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) |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | /** |
| 67 | 67 | * {@inheritdoc} |
| 68 | 68 | */ |
| 69 | - public function handle(DataBag $commandParameters, DataBag $validatedParameters, ?UserAccountId $userAccountId, callable $next): DataBag |
|
| 69 | + public function handle(DataBag $commandParameters, DataBag $validatedParameters, ? UserAccountId $userAccountId, callable $next) : DataBag |
|
| 70 | 70 | { |
| 71 | 71 | Assertion::false($this->isSoftwareStatementRequired() && !$commandParameters->has('software_statement'), 'The parameter \'software_statement\' is mandatory.'); |
| 72 | 72 | if ($commandParameters->has('software_statement')) { |