Passed
Push — master ( 2fde46...c4ff34 )
by meta
02:48
created
src/ServiceProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
             // Go through all the credential config and make sure they are set in the .env or config file
48 48
             foreach (config('enterpriseauth.credentials') as $config => $env) {
49 49
                 // If one isnt set, throw a red flat until the person fixes it
50
-                if (! config('enterpriseauth.credentials.'.$config)) {
50
+                if (!config('enterpriseauth.credentials.'.$config)) {
51 51
                     throw new \Exception('enterpriseauth setup error: missing mandatory config value for enterpriseauth.credentials.'.$config.' check your .env file!');
52 52
                 }
53 53
             }
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         // Override the application configuration to use our oauth token guard driver at runtime
60 60
         config(['auth.guards.api.driver' => 'oauthtoken']);
61 61
         // Now I have a machine gun. ho ho ho!
62
-        \Illuminate\Support\Facades\Auth::extend('oauthtoken', function ($app, $name, array $config) {
62
+        \Illuminate\Support\Facades\Auth::extend('oauthtoken', function($app, $name, array $config) {
63 63
             $userProvider = \Illuminate\Support\Facades\Auth::createUserProvider($config['provider']);
64 64
             return new \Metaclassing\EnterpriseAuth\Middleware\OauthTokenGuard($userProvider, $app->make('request'));
65 65
         });
@@ -68,13 +68,13 @@  discard block
 block discarded – undo
68 68
     protected function configureSwaggerToScanEnterpriseAuthRouteFiles()
69 69
     {
70 70
         $swaggerScanPaths = config('l5-swagger.paths.annotations');
71
-        if (! is_array($swaggerScanPaths)) {
71
+        if (!is_array($swaggerScanPaths)) {
72 72
             $swaggerScanPaths = [$swaggerScanPaths];
73 73
         }
74
-        if (! in_array(base_path('routes'), $swaggerScanPaths)) {
74
+        if (!in_array(base_path('routes'), $swaggerScanPaths)) {
75 75
             $swaggerScanPaths[] = base_path('routes');
76 76
         }
77
-        if (! in_array(__DIR__.'/../routes/', $swaggerScanPaths)) {
77
+        if (!in_array(__DIR__.'/../routes/', $swaggerScanPaths)) {
78 78
             $swaggerScanPaths[] = __DIR__.'/../routes/';
79 79
         }
80 80
         config(['l5-swagger.paths.annotations' => $swaggerScanPaths]);
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
     {
85 85
         // If the routes files for the swagger oauth config is NOT present, and we have all the right info, then generate it really quick
86 86
         $swaggerAzureadFile = __DIR__.'/../routes/swagger.azuread.php';
87
-        if (! file_exists($swaggerAzureadFile)) {
87
+        if (!file_exists($swaggerAzureadFile)) {
88 88
             $aad = new AzureActiveDirectory(config('enterpriseauth.credentials.tenant'));
89 89
             //$authorizationUrl = $aad->authorizationEndpoint . '?resource=https://graph.microsoft.com';
90 90
             $authorizationUrl = $aad->authorizationEndpoint;
Please login to merge, or discard this patch.