@@ -12,7 +12,7 @@ |
||
| 12 | 12 | public function up(): void |
| 13 | 13 | { |
| 14 | 14 | //Action when migrate up |
| 15 | - $this->create('oauth_authorization_codes', function (CreateTable $table) { |
|
| 15 | + $this->create('oauth_authorization_codes', function(CreateTable $table) { |
|
| 16 | 16 | $table->string('authorization_code', 100) |
| 17 | 17 | ->notNull() |
| 18 | 18 | ->description('The authorization code') |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | public function up(): void |
| 13 | 13 | { |
| 14 | 14 | //Action when migrate up |
| 15 | - $this->create('oauth_scopes', function (CreateTable $table) { |
|
| 15 | + $this->create('oauth_scopes', function(CreateTable $table) { |
|
| 16 | 16 | $table->integer('id') |
| 17 | 17 | ->autoincrement() |
| 18 | 18 | ->primary(); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | public function up(): void |
| 13 | 13 | { |
| 14 | 14 | //Action when migrate up |
| 15 | - $this->create('oauth_refresh_tokens', function (CreateTable $table) { |
|
| 15 | + $this->create('oauth_refresh_tokens', function(CreateTable $table) { |
|
| 16 | 16 | $table->string('refresh_token', 100) |
| 17 | 17 | ->notNull() |
| 18 | 18 | ->description('The refresh token') |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | public function up(): void |
| 13 | 13 | { |
| 14 | 14 | //Action when migrate up |
| 15 | - $this->create('oauth_access_tokens', function (CreateTable $table) { |
|
| 15 | + $this->create('oauth_access_tokens', function(CreateTable $table) { |
|
| 16 | 16 | $table->string('access_token', 100) |
| 17 | 17 | ->notNull() |
| 18 | 18 | ->description('The access token') |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | public function up(): void |
| 13 | 13 | { |
| 14 | 14 | //Action when migrate up |
| 15 | - $this->create('oauth_clients', function (CreateTable $table) { |
|
| 15 | + $this->create('oauth_clients', function(CreateTable $table) { |
|
| 16 | 16 | $table->string('id', 100) |
| 17 | 17 | ->notNull() |
| 18 | 18 | ->description('The client id') |
@@ -55,6 +55,6 @@ |
||
| 55 | 55 | */ |
| 56 | 56 | public function getAccessToken( |
| 57 | 57 | ServerRequestInterface $request, |
| 58 | - string|array $scopes = [] |
|
| 58 | + string | array $scopes = [] |
|
| 59 | 59 | ): ?AccessToken; |
| 60 | 60 | } |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | */ |
| 69 | 69 | public function getAccessToken( |
| 70 | 70 | ServerRequestInterface $request, |
| 71 | - string|array $scopes = [] |
|
| 71 | + string | array $scopes = [] |
|
| 72 | 72 | ): ?AccessToken { |
| 73 | 73 | $accessToken = $this->getTokenFromRequest($request); |
| 74 | 74 | if ($accessToken === null) { |
@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | * @param string|array<string> $scopes |
| 179 | 179 | * @return bool |
| 180 | 180 | */ |
| 181 | - public function matchScopes(string|array $scopes): bool |
|
| 181 | + public function matchScopes(string | array $scopes): bool |
|
| 182 | 182 | { |
| 183 | 183 | if (is_string($scopes)) { |
| 184 | 184 | $scopes = explode(' ', $scopes); |
@@ -194,7 +194,7 @@ discard block |
||
| 194 | 194 | * @param string|array<string> $scopes |
| 195 | 195 | * @return bool |
| 196 | 196 | */ |
| 197 | - public function isValid(string|array $scopes): bool |
|
| 197 | + public function isValid(string | array $scopes): bool |
|
| 198 | 198 | { |
| 199 | 199 | if ($this->isExpired()) { |
| 200 | 200 | return false; |
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | */ |
| 88 | 88 | public static function createNewClient( |
| 89 | 89 | string $name, |
| 90 | - string|array|null $redirectUris = null, |
|
| 90 | + string | array | null $redirectUris = null, |
|
| 91 | 91 | ?array $scopes = null |
| 92 | 92 | ): self { |
| 93 | 93 | if (is_string($redirectUris)) { |