Passed
Push — master ( 5746c2...0d75e8 )
by Max van der
08:01 queued 01:43
created
src/Repositories/ScopeRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Providers/Oauth2ServerServiceProvider.php 2 patches
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -134,7 +134,9 @@
 block discarded – undo
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']);
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     {
59 59
         // Merge config
60 60
         $this->mergeConfigFrom(
61
-            dirname(__DIR__).'/config/oauth2-server.php', 'oauth2-server'
61
+            dirname(__DIR__) . '/config/oauth2-server.php', 'oauth2-server'
62 62
         );
63 63
 
64 64
         /*
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
          * Add active grants to authorization server
114 114
          */
115 115
         $this->app->resolving(AuthorizationServer::class, function(AuthorizationServer $authorizationServer) {
116
-            foreach(config('oauth2-server.grants') as $grantConfig) {
116
+            foreach (config('oauth2-server.grants') as $grantConfig) {
117 117
                 if (!(boolean) $grantConfig['enabled']) continue;
118 118
 
119 119
                 /** @var GrantTypeInterface $grant */
Please login to merge, or discard this patch.