Passed
Push — master ( 2bfef0...ca1baa )
by Monney
06:08
created
src/LaravelOAuthServiceProvider.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         $loader->alias('Socialite', \Laravel\Socialite\Facades\Socialite::class);
64 64
 
65 65
         // Register the service the package provides.
66
-        $this->app->singleton('laravelsocialite', function ($app) {
66
+        $this->app->singleton('laravelsocialite', function($app) {
67 67
             return new LaravelSocialite;
68 68
         });
69 69
         // Create aliase for the package provider
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      */
78 78
     public function provides()
79 79
     {
80
-        return ['laravelsocialite'];
80
+        return [ 'laravelsocialite' ];
81 81
     }
82 82
 
83 83
     private function bootInstagramSocialite()
@@ -85,8 +85,8 @@  discard block
 block discarded – undo
85 85
         $socialite = $this->app->make(\Laravel\Socialite\Contracts\Factory::class);
86 86
         $socialite->extend(
87 87
             'instagram',
88
-            function ($app) use ($socialite) {
89
-                $config = $app['config']['services.instagram'];
88
+            function($app) use ($socialite) {
89
+                $config = $app[ 'config' ][ 'services.instagram' ];
90 90
 
91 91
                 return $socialite->buildProvider(InstagramProvider::class, $config);
92 92
             }
@@ -98,8 +98,8 @@  discard block
 block discarded – undo
98 98
         $socialite = $this->app->make(\Laravel\Socialite\Contracts\Factory::class);
99 99
         $socialite->extend(
100 100
             'dribbble',
101
-            function ($app) use ($socialite) {
102
-                $config = $app['config']['services.dribbble'];
101
+            function($app) use ($socialite) {
102
+                $config = $app[ 'config' ][ 'services.dribbble' ];
103 103
 
104 104
                 return $socialite->buildProvider(DribbbleProvider::class, $config);
105 105
             }
@@ -111,8 +111,8 @@  discard block
 block discarded – undo
111 111
         $socialite = $this->app->make(\Laravel\Socialite\Contracts\Factory::class);
112 112
         $socialite->extend(
113 113
             'pinterest',
114
-            function ($app) use ($socialite) {
115
-                $config = $app['config']['services.pinterest'];
114
+            function($app) use ($socialite) {
115
+                $config = $app[ 'config' ][ 'services.pinterest' ];
116 116
 
117 117
                 return $socialite->buildProvider(PinterestProvider::class, $config);
118 118
             }
@@ -124,8 +124,8 @@  discard block
 block discarded – undo
124 124
         $socialite = $this->app->make(\Laravel\Socialite\Contracts\Factory::class);
125 125
         $socialite->extend(
126 126
             'youtube',
127
-            function ($app) use ($socialite) {
128
-                $config = $app['config']['services.youtube'];
127
+            function($app) use ($socialite) {
128
+                $config = $app[ 'config' ][ 'services.youtube' ];
129 129
 
130 130
                 return $socialite->buildProvider(YoutubeProvider::class, $config);
131 131
             }
Please login to merge, or discard this patch.
src/Providers/YoutubeProvider.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
     /**
12 12
      * {@inheritdoc}
13 13
      */
14
-    protected $scopes = ['https://www.googleapis.com/auth/youtube.readonly'];
14
+    protected $scopes = [ 'https://www.googleapis.com/auth/youtube.readonly' ];
15 15
 
16 16
     /**
17 17
      * {@inheritdoc}
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
             ],
49 49
         ]);
50 50
 
51
-        return json_decode($response->getBody()->getContents(), true)['items'][0];
51
+        return json_decode($response->getBody()->getContents(), true)[ 'items' ][ 0 ];
52 52
     }
53 53
 
54 54
     /**
@@ -57,11 +57,11 @@  discard block
 block discarded – undo
57 57
     protected function mapUserToObject(array $user)
58 58
     {
59 59
         return (new User())->setRaw($user)->map([
60
-            'id'       => $user['id'],
61
-            'nickname' => $user['snippet']['title'],
60
+            'id'       => $user[ 'id' ],
61
+            'nickname' => $user[ 'snippet' ][ 'title' ],
62 62
             'name'     => null,
63 63
             'email'    => null,
64
-            'avatar'   => $user['snippet']['thumbnails']['high']['url'],
64
+            'avatar'   => $user[ 'snippet' ][ 'thumbnails' ][ 'high' ][ 'url' ],
65 65
         ]);
66 66
     }
67 67
 
Please login to merge, or discard this patch.