@@ -59,7 +59,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | } |
@@ -12,7 +12,7 @@ discard block |
||
| 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 |
||
| 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 | } |