Passed
Push — master ( c33ae4...c590b7 )
by Monney
10:15
created
src/LaravelOAuthServiceProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         $loader->alias('Socialite', \Laravel\Socialite\Facades\Socialite::class);
58 58
 
59 59
         // Register the service the package provides.
60
-        $this->app->singleton('laravelsocialite', function ($app) {
60
+        $this->app->singleton('laravelsocialite', function($app) {
61 61
             return new LaravelSocialite;
62 62
         });
63 63
         // Create aliase for the package provider
@@ -72,8 +72,8 @@  discard block
 block discarded – undo
72 72
         $socialite = $this->app->make(\Laravel\Socialite\Contracts\Factory::class);
73 73
         $socialite->extend(
74 74
             'instagram',
75
-            function ($app) use ($socialite) {
76
-                $config = $app['config']['services.instagram'];
75
+            function($app) use ($socialite) {
76
+                $config = $app[ 'config' ][ 'services.instagram' ];
77 77
                 return $socialite->buildProvider(InstagramProvider::class, $config);
78 78
             }
79 79
         );
@@ -86,6 +86,6 @@  discard block
 block discarded – undo
86 86
      */
87 87
     public function provides()
88 88
     {
89
-        return ['laravelsocialite'];
89
+        return [ 'laravelsocialite' ];
90 90
     }
91 91
 }
Please login to merge, or discard this patch.
src/Providers/InstagramProvider.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
     /**
17 17
      * {@inheritdoc}
18 18
      */
19
-    protected $scopes = ['basic'];
19
+    protected $scopes = [ 'basic' ];
20 20
 
21 21
     /**
22 22
      * {@inheritdoc}
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         ];
48 48
         $signature = $this->generateSignature($endpoint, $query);
49 49
 
50
-        $query['sig'] = $signature;
50
+        $query[ 'sig' ] = $signature;
51 51
         $response = $this->getHttpClient()->get(
52 52
             'https://api.instagram.com/v1/users/self', [
53 53
             'query'   => $query,
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
             ],
57 57
         ]);
58 58
 
59
-        return json_decode($response->getBody()->getContents(), true)['data'];
59
+        return json_decode($response->getBody()->getContents(), true)[ 'data' ];
60 60
     }
61 61
 
62 62
     /**
@@ -65,11 +65,11 @@  discard block
 block discarded – undo
65 65
     protected function mapUserToObject(array $user)
66 66
     {
67 67
         return (new User())->setRaw($user)->map([
68
-            'id'     => $user['id'],
69
-            'nickname' => $user['username'],
70
-            'name'   => $user['full_name'],
68
+            'id'     => $user[ 'id' ],
69
+            'nickname' => $user[ 'username' ],
70
+            'name'   => $user[ 'full_name' ],
71 71
             'email' => null,
72
-            'avatar' => $user['profile_picture'],
72
+            'avatar' => $user[ 'profile_picture' ],
73 73
         ]);
74 74
     }
75 75
 
Please login to merge, or discard this patch.