@@ -1,6 +1,6 @@ |
||
| 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) |
@@ -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,7 +56,7 @@ discard block |
||
| 56 | 56 | /** |
| 57 | 57 | * {@inheritdoc} |
| 58 | 58 | */ |
| 59 | - public function create(UserAccountId $userAccountId, ClientId $clientId, array $scopes, ? ResourceServerId $resourceServerId): PreConfiguredAuthorization |
|
| 59 | + public function create(UserAccountId $userAccountId, ClientId $clientId, array $scopes, ? ResourceServerId $resourceServerId) : PreConfiguredAuthorization |
|
| 60 | 60 | { |
| 61 | 61 | $hash = $this->calculateHash($userAccountId, $clientId, $scopes, $resourceServerId); |
| 62 | 62 | $preConfiguredAuthorization = PreConfiguredAuthorization::createEmpty(); |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | /** |
| 69 | 69 | * {@inheritdoc} |
| 70 | 70 | */ |
| 71 | - public function find(UserAccountId $userAccountId, ClientId $clientId, array $scopes, ? ResourceServerId $resourceServerId): ? PreConfiguredAuthorization |
|
| 71 | + public function find(UserAccountId $userAccountId, ClientId $clientId, array $scopes, ? ResourceServerId $resourceServerId) : ? PreConfiguredAuthorization |
|
| 72 | 72 | { |
| 73 | 73 | $hash = $this->calculateHash($userAccountId, $clientId, $scopes, $resourceServerId); |
| 74 | 74 | $preConfiguredAuthorization = $this->getFromCache($hash); |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | * |
| 150 | 150 | * @return PreConfiguredAuthorizationId |
| 151 | 151 | */ |
| 152 | - private function calculateHash(ResourceOwnerId $resourceOwnerId, ClientId $clientId, array $scope, ? ResourceServerId $resourceServerId): PreConfiguredAuthorizationId |
|
| 152 | + private function calculateHash(ResourceOwnerId $resourceOwnerId, ClientId $clientId, array $scope, ? ResourceServerId $resourceServerId) : PreConfiguredAuthorizationId |
|
| 153 | 153 | { |
| 154 | 154 | return PreConfiguredAuthorizationId::create(hash( |
| 155 | 155 | 'sha512', |
@@ -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) |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | /** |
| 79 | 79 | * {@inheritdoc} |
| 80 | 80 | */ |
| 81 | - public function create(ClientId $clientId, UserAccountId $userAccountId, array $queryParameters, string $redirectUri, DataBag $parameters, DataBag $metadatas, array $scopes, bool $withRefreshToken, ? ResourceServerId $resourceServerId, ? \DateTimeImmutable $expiresAt): AuthCode |
|
| 81 | + public function create(ClientId $clientId, UserAccountId $userAccountId, array $queryParameters, string $redirectUri, DataBag $parameters, DataBag $metadatas, array $scopes, bool $withRefreshToken, ? ResourceServerId $resourceServerId, ? \DateTimeImmutable $expiresAt) : AuthCode |
|
| 82 | 82 | { |
| 83 | 83 | if (null === $expiresAt) { |
| 84 | 84 | $expiresAt = new \DateTimeImmutable(sprintf('now +%u seconds', $this->lifetime)); |
@@ -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) |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | /** |
| 109 | 109 | * {@inheritdoc} |
| 110 | 110 | */ |
| 111 | - public function create(ResourceOwnerId $resourceOwnerId, ClientId $clientId, DataBag $parameters, DataBag $metadatas, array $scopes, ? RefreshTokenId $refreshTokenId, ? ResourceServerId $resourceServerId, ? \DateTimeImmutable $expiresAt): AccessToken |
|
| 111 | + public function create(ResourceOwnerId $resourceOwnerId, ClientId $clientId, DataBag $parameters, DataBag $metadatas, array $scopes, ? RefreshTokenId $refreshTokenId, ? ResourceServerId $resourceServerId, ? \DateTimeImmutable $expiresAt) : AccessToken |
|
| 112 | 112 | { |
| 113 | 113 | if (null === $expiresAt) { |
| 114 | 114 | $expiresAt = new \DateTimeImmutable(sprintf('now +%u seconds', $this->lifetime)); |
@@ -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) |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | /** |
| 55 | 55 | * {@inheritdoc} |
| 56 | 56 | */ |
| 57 | - public function create(? UserAccountId $userAccountId, ? \DateTimeImmutable $expiresAt): InitialAccessToken |
|
| 57 | + public function create(? UserAccountId $userAccountId, ? \DateTimeImmutable $expiresAt) : InitialAccessToken |
|
| 58 | 58 | { |
| 59 | 59 | $initialAccessTokeId = InitialAccessTokenId::create(Uuid::uuid4()->toString()); |
| 60 | 60 | $initialAccessToken = InitialAccessToken::createEmpty(); |
@@ -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) |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | /** |
| 86 | 86 | * {@inheritdoc} |
| 87 | 87 | */ |
| 88 | - public function create(ResourceOwnerId $resourceOwnerId, ClientId $clientId, DataBag $parameters, DataBag $metadatas, array $scopes, ? ResourceServerId $resourceServerId, ? \DateTimeImmutable $expiresAt): RefreshToken |
|
| 88 | + public function create(ResourceOwnerId $resourceOwnerId, ClientId $clientId, DataBag $parameters, DataBag $metadatas, array $scopes, ? ResourceServerId $resourceServerId, ? \DateTimeImmutable $expiresAt) : RefreshToken |
|
| 89 | 89 | { |
| 90 | 90 | if (null === $expiresAt) { |
| 91 | 91 | $expiresAt = new \DateTimeImmutable(sprintf('now +%u seconds', $this->lifetime)); |
@@ -1,6 +1,6 @@ |
||
| 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) |
@@ -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) |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | ->info('The Client class.') |
| 157 | 157 | ->isRequired() |
| 158 | 158 | ->validate() |
| 159 | - ->ifTrue(function ($value) { |
|
| 159 | + ->ifTrue(function($value) { |
|
| 160 | 160 | return !class_exists($value); |
| 161 | 161 | }) |
| 162 | 162 | ->thenInvalid('The class does not exist.') |
@@ -426,7 +426,7 @@ discard block |
||
| 426 | 426 | */ |
| 427 | 427 | private function areClientAssertionSignatureAlgorithmsInvalid() |
| 428 | 428 | { |
| 429 | - return function ($data) { |
|
| 429 | + return function($data) { |
|
| 430 | 430 | if (false === $data['enabled']) { |
| 431 | 431 | return false; |
| 432 | 432 | } |
@@ -442,7 +442,7 @@ discard block |
||
| 442 | 442 | */ |
| 443 | 443 | private function isClientAssertionEncryptionParameterInvalid($parameter) |
| 444 | 444 | { |
| 445 | - return function ($data) use ($parameter) { |
|
| 445 | + return function($data) use ($parameter) { |
|
| 446 | 446 | if (false === $data['encryption']['enabled']) { |
| 447 | 447 | return false; |
| 448 | 448 | } |
@@ -456,7 +456,7 @@ discard block |
||
| 456 | 456 | */ |
| 457 | 457 | private function isClientSecretBasicRealmInvalid() |
| 458 | 458 | { |
| 459 | - return function ($data) { |
|
| 459 | + return function($data) { |
|
| 460 | 460 | if (false === $data['enabled']) { |
| 461 | 461 | return false; |
| 462 | 462 | } |
@@ -470,7 +470,7 @@ discard block |
||
| 470 | 470 | */ |
| 471 | 471 | private function isRegistrationPathValid() |
| 472 | 472 | { |
| 473 | - return function ($data) { |
|
| 473 | + return function($data) { |
|
| 474 | 474 | return true === $data['enabled'] && empty($data['registration_path']); |
| 475 | 475 | }; |
| 476 | 476 | } |
@@ -480,7 +480,7 @@ discard block |
||
| 480 | 480 | */ |
| 481 | 481 | private function isConfigurationPathValid() |
| 482 | 482 | { |
| 483 | - return function ($data) { |
|
| 483 | + return function($data) { |
|
| 484 | 484 | return true === $data['enabled'] && empty($data['configuration_path']); |
| 485 | 485 | }; |
| 486 | 486 | } |
@@ -490,7 +490,7 @@ discard block |
||
| 490 | 490 | */ |
| 491 | 491 | private function isInitialAccessTokenClassValid() |
| 492 | 492 | { |
| 493 | - return function ($data) { |
|
| 493 | + return function($data) { |
|
| 494 | 494 | return true === $data['enabled'] && (empty($data['class']) || !class_exists($data['class'])); |
| 495 | 495 | }; |
| 496 | 496 | } |
@@ -500,7 +500,7 @@ discard block |
||
| 500 | 500 | */ |
| 501 | 501 | private function isInitialAccessTokenManagerValid() |
| 502 | 502 | { |
| 503 | - return function ($data) { |
|
| 503 | + return function($data) { |
|
| 504 | 504 | return true === $data['enabled'] && empty($data['class']); |
| 505 | 505 | }; |
| 506 | 506 | } |
@@ -510,7 +510,7 @@ discard block |
||
| 510 | 510 | */ |
| 511 | 511 | private function isSoftwareStatementKeySetValid() |
| 512 | 512 | { |
| 513 | - return function ($data) { |
|
| 513 | + return function($data) { |
|
| 514 | 514 | return true === $data['enabled'] && empty($data['key_set']); |
| 515 | 515 | }; |
| 516 | 516 | } |
@@ -520,7 +520,7 @@ discard block |
||
| 520 | 520 | */ |
| 521 | 521 | private function isSoftwareStatementAlgorithmValid() |
| 522 | 522 | { |
| 523 | - return function ($data) { |
|
| 523 | + return function($data) { |
|
| 524 | 524 | return true === $data['enabled'] && empty($data['signature_algorithm']); |
| 525 | 525 | }; |
| 526 | 526 | } |
@@ -1,6 +1,6 @@ |
||
| 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) |