Passed
Push — master ( cc79c7...17dcf4 )
by Max van der
05:28
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   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -49,22 +49,22 @@  discard block
 block discarded – undo
49 49
         /*
50 50
          * Load routes
51 51
          */
52
-        if (! $this->app->routesAreCached()) {
53
-            require dirname(__DIR__).'/Http/routes.php';
52
+        if (!$this->app->routesAreCached()) {
53
+            require dirname(__DIR__) . '/Http/routes.php';
54 54
         }
55 55
 
56 56
         /*
57 57
          * Load migrations
58 58
          */
59 59
         $this->publishes([
60
-            dirname(__DIR__).'/migrations' => database_path('migrations')
60
+            dirname(__DIR__) . '/migrations' => database_path('migrations')
61 61
         ], 'migrations');
62 62
 
63 63
         /*
64 64
          * Publish config
65 65
          */
66 66
         $this->publishes([
67
-            dirname(__DIR__).'/config/oauth2-server.php' => config_path('oauth2-server.php'),
67
+            dirname(__DIR__) . '/config/oauth2-server.php' => config_path('oauth2-server.php'),
68 68
         ]);
69 69
 
70 70
         /*
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     {
83 83
         // Merge config
84 84
         $this->mergeConfigFrom(
85
-            dirname(__DIR__).'/config/oauth2-server.php', 'oauth2-server'
85
+            dirname(__DIR__) . '/config/oauth2-server.php', 'oauth2-server'
86 86
         );
87 87
 
88 88
         /*
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
          * Add active grants to authorization server
138 138
          */
139 139
         $this->app->resolving(AuthorizationServer::class, function(AuthorizationServer $authorizationServer) {
140
-            foreach(config('oauth2-server.grants') as $grantConfig) {
140
+            foreach (config('oauth2-server.grants') as $grantConfig) {
141 141
                 if (!(boolean) $grantConfig['enabled']) continue;
142 142
 
143 143
                 /** @var GrantTypeInterface $grant */
Please login to merge, or discard this patch.