@@ -42,7 +42,7 @@ |
||
42 | 42 | $clientScopes = $client->scopes; |
43 | 43 | |
44 | 44 | $requestedScopeIds = []; |
45 | - foreach($scopes as $scope) { |
|
45 | + foreach ($scopes as $scope) { |
|
46 | 46 | $requestedScopeIds[] = $scope->getIdentifier(); |
47 | 47 | } |
48 | 48 |
@@ -49,18 +49,18 @@ discard block |
||
49 | 49 | /* |
50 | 50 | * Load routes |
51 | 51 | */ |
52 | - $this->loadRoutesFrom(dirname(__DIR__).'/Http/routes.php'); |
|
52 | + $this->loadRoutesFrom(dirname(__DIR__) . '/Http/routes.php'); |
|
53 | 53 | |
54 | 54 | /* |
55 | 55 | * Load migrations |
56 | 56 | */ |
57 | - $this->loadMigrationsFrom(dirname(__DIR__).'/migrations'); |
|
57 | + $this->loadMigrationsFrom(dirname(__DIR__) . '/migrations'); |
|
58 | 58 | |
59 | 59 | /* |
60 | 60 | * Publish config |
61 | 61 | */ |
62 | 62 | $this->publishes([ |
63 | - dirname(__DIR__).'/config/oauth2-server.php' => config_path('oauth2-server.php'), |
|
63 | + dirname(__DIR__) . '/config/oauth2-server.php' => config_path('oauth2-server.php'), |
|
64 | 64 | ]); |
65 | 65 | |
66 | 66 | /* |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | { |
79 | 79 | // Merge config |
80 | 80 | $this->mergeConfigFrom( |
81 | - dirname(__DIR__).'/config/oauth2-server.php', 'oauth2-server' |
|
81 | + dirname(__DIR__) . '/config/oauth2-server.php', 'oauth2-server' |
|
82 | 82 | ); |
83 | 83 | |
84 | 84 | /* |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | * Add active grants to authorization server |
134 | 134 | */ |
135 | 135 | $this->app->resolving(AuthorizationServer::class, function(AuthorizationServer $authorizationServer) { |
136 | - foreach(config('oauth2-server.grants') as $grantConfig) { |
|
136 | + foreach (config('oauth2-server.grants') as $grantConfig) { |
|
137 | 137 | if (!(boolean) $grantConfig['enabled']) continue; |
138 | 138 | |
139 | 139 | /** @var GrantTypeInterface $grant */ |
@@ -134,7 +134,9 @@ |
||
134 | 134 | */ |
135 | 135 | $this->app->resolving(AuthorizationServer::class, function(AuthorizationServer $authorizationServer) { |
136 | 136 | foreach(config('oauth2-server.grants') as $grantConfig) { |
137 | - if (!(boolean) $grantConfig['enabled']) continue; |
|
137 | + if (!(boolean) $grantConfig['enabled']) { |
|
138 | + continue; |
|
139 | + } |
|
138 | 140 | |
139 | 141 | /** @var GrantTypeInterface $grant */ |
140 | 142 | $grant = app($grantConfig['class']); |