@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | /** |
| 12 | 12 | * {@inheritdoc} |
| 13 | 13 | */ |
| 14 | - protected $scopes = ['read_user']; |
|
| 14 | + protected $scopes = [ 'read_user' ]; |
|
| 15 | 15 | |
| 16 | 16 | /** |
| 17 | 17 | * {@inheritdoc} |
@@ -54,11 +54,11 @@ discard block |
||
| 54 | 54 | protected function mapUserToObject(array $user) |
| 55 | 55 | { |
| 56 | 56 | return (new User())->setRaw($user)->map([ |
| 57 | - 'id' => $user['id'], |
|
| 58 | - 'nickname' => $user['username'], |
|
| 59 | - 'name' => $user['name'], |
|
| 60 | - 'email' => $user['email'], |
|
| 61 | - 'avatar' => $user['avatar_url'], |
|
| 57 | + 'id' => $user[ 'id' ], |
|
| 58 | + 'nickname' => $user[ 'username' ], |
|
| 59 | + 'name' => $user[ 'name' ], |
|
| 60 | + 'email' => $user[ 'email' ], |
|
| 61 | + 'avatar' => $user[ 'avatar_url' ], |
|
| 62 | 62 | ]); |
| 63 | 63 | } |
| 64 | 64 | |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | $loader->alias('Socialite', \Laravel\Socialite\Facades\Socialite::class); |
| 66 | 66 | |
| 67 | 67 | // Register the service the package provides. |
| 68 | - $this->app->singleton('laravelsocialite', function ($app) { |
|
| 68 | + $this->app->singleton('laravelsocialite', function($app) { |
|
| 69 | 69 | return new LaravelSocialite; |
| 70 | 70 | }); |
| 71 | 71 | // Create aliase for the package provider |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | */ |
| 80 | 80 | public function provides() |
| 81 | 81 | { |
| 82 | - return ['laravelsocialite']; |
|
| 82 | + return [ 'laravelsocialite' ]; |
|
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | private function bootInstagramSocialite() |
@@ -87,8 +87,8 @@ discard block |
||
| 87 | 87 | $socialite = $this->app->make(\Laravel\Socialite\Contracts\Factory::class); |
| 88 | 88 | $socialite->extend( |
| 89 | 89 | 'instagram', |
| 90 | - function ($app) use ($socialite) { |
|
| 91 | - $config = $app['config']['services.instagram']; |
|
| 90 | + function($app) use ($socialite) { |
|
| 91 | + $config = $app[ 'config' ][ 'services.instagram' ]; |
|
| 92 | 92 | |
| 93 | 93 | return $socialite->buildProvider(InstagramProvider::class, $config); |
| 94 | 94 | } |
@@ -100,8 +100,8 @@ discard block |
||
| 100 | 100 | $socialite = $this->app->make(\Laravel\Socialite\Contracts\Factory::class); |
| 101 | 101 | $socialite->extend( |
| 102 | 102 | 'dribbble', |
| 103 | - function ($app) use ($socialite) { |
|
| 104 | - $config = $app['config']['services.dribbble']; |
|
| 103 | + function($app) use ($socialite) { |
|
| 104 | + $config = $app[ 'config' ][ 'services.dribbble' ]; |
|
| 105 | 105 | |
| 106 | 106 | return $socialite->buildProvider(DribbbleProvider::class, $config); |
| 107 | 107 | } |
@@ -113,8 +113,8 @@ discard block |
||
| 113 | 113 | $socialite = $this->app->make(\Laravel\Socialite\Contracts\Factory::class); |
| 114 | 114 | $socialite->extend( |
| 115 | 115 | 'pinterest', |
| 116 | - function ($app) use ($socialite) { |
|
| 117 | - $config = $app['config']['services.pinterest']; |
|
| 116 | + function($app) use ($socialite) { |
|
| 117 | + $config = $app[ 'config' ][ 'services.pinterest' ]; |
|
| 118 | 118 | |
| 119 | 119 | return $socialite->buildProvider(PinterestProvider::class, $config); |
| 120 | 120 | } |
@@ -126,8 +126,8 @@ discard block |
||
| 126 | 126 | $socialite = $this->app->make(\Laravel\Socialite\Contracts\Factory::class); |
| 127 | 127 | $socialite->extend( |
| 128 | 128 | 'youtube', |
| 129 | - function ($app) use ($socialite) { |
|
| 130 | - $config = $app['config']['services.youtube']; |
|
| 129 | + function($app) use ($socialite) { |
|
| 130 | + $config = $app[ 'config' ][ 'services.youtube' ]; |
|
| 131 | 131 | |
| 132 | 132 | return $socialite->buildProvider(YoutubeProvider::class, $config); |
| 133 | 133 | } |
@@ -139,8 +139,8 @@ discard block |
||
| 139 | 139 | $socialite = $this->app->make(\Laravel\Socialite\Contracts\Factory::class); |
| 140 | 140 | $socialite->extend( |
| 141 | 141 | 'gitlab', |
| 142 | - function ($app) use ($socialite) { |
|
| 143 | - $config = $app['config']['services.gitlab']; |
|
| 142 | + function($app) use ($socialite) { |
|
| 143 | + $config = $app[ 'config' ][ 'services.gitlab' ]; |
|
| 144 | 144 | |
| 145 | 145 | return $socialite->buildProvider(GitlabProvider::class, $config); |
| 146 | 146 | } |