Passed
Push — master ( c12ea0...c2fa64 )
by Monney
03:45
created
src/LaravelOAuthServiceProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         $loader->alias('Socialite', \Laravel\Socialite\Facades\Socialite::class);
60 60
 
61 61
         // Register the service the package provides.
62
-        $this->app->singleton('laravelsocialite', function ($app) {
62
+        $this->app->singleton('laravelsocialite', function($app) {
63 63
             return new LaravelSocialite;
64 64
         });
65 65
         // Create aliase for the package provider
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      */
74 74
     public function provides()
75 75
     {
76
-        return ['laravelsocialite'];
76
+        return [ 'laravelsocialite' ];
77 77
     }
78 78
 
79 79
     private function bootInstagramSocialite()
@@ -81,8 +81,8 @@  discard block
 block discarded – undo
81 81
         $socialite = $this->app->make(\Laravel\Socialite\Contracts\Factory::class);
82 82
         $socialite->extend(
83 83
             'instagram',
84
-            function ($app) use ($socialite) {
85
-                $config = $app['config']['services.instagram'];
84
+            function($app) use ($socialite) {
85
+                $config = $app[ 'config' ][ 'services.instagram' ];
86 86
 
87 87
                 return $socialite->buildProvider(InstagramProvider::class, $config);
88 88
             }
@@ -94,8 +94,8 @@  discard block
 block discarded – undo
94 94
         $socialite = $this->app->make(\Laravel\Socialite\Contracts\Factory::class);
95 95
         $socialite->extend(
96 96
             'dribbble',
97
-            function ($app) use ($socialite) {
98
-                $config = $app['config']['services.dribbble'];
97
+            function($app) use ($socialite) {
98
+                $config = $app[ 'config' ][ 'services.dribbble' ];
99 99
 
100 100
                 return $socialite->buildProvider(DribbbleProvider::class, $config);
101 101
             }
Please login to merge, or discard this patch.
src/Providers/DribbbleProvider.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
     /**
13 13
      * {@inheritdoc}
14 14
      */
15
-    protected $scopes = ['public'];
15
+    protected $scopes = [ 'public' ];
16 16
 
17 17
     /**
18 18
      * Get the authentication URL for the provider.
@@ -60,11 +60,11 @@  discard block
 block discarded – undo
60 60
     protected function mapUserToObject(array $user)
61 61
     {
62 62
         return (new User())->setRaw($user)->map([
63
-            'id'     => $user['id'],
64
-            'nickname' => $user['login'],
65
-            'name'   => $user['name'],
63
+            'id'     => $user[ 'id' ],
64
+            'nickname' => $user[ 'login' ],
65
+            'name'   => $user[ 'name' ],
66 66
             'email' => Arr::get($user, 'email'),
67
-            'avatar' => $user['avatar_url'],
67
+            'avatar' => $user[ 'avatar_url' ],
68 68
         ]);
69 69
 
70 70
     }
Please login to merge, or discard this patch.