@@ -59,7 +59,7 @@ |
||
59 | 59 | |
60 | 60 | $socialite->extend( |
61 | 61 | $providerName, |
62 | - function () use ($socialite, $providerName, $providerClass, $oauth1Server) { |
|
62 | + function() use ($socialite, $providerName, $providerClass, $oauth1Server) { |
|
63 | 63 | $provider = $this->buildProvider($socialite, $providerName, $providerClass, $oauth1Server); |
64 | 64 | if (defined('SOCIALITEPROVIDERS_STATELESS') && SOCIALITEPROVIDERS_STATELESS) { |
65 | 65 | return $provider->stateless(); |
@@ -12,7 +12,7 @@ |
||
12 | 12 | protected $config; |
13 | 13 | |
14 | 14 | /** |
15 | - * @param \SocialiteProviders\Manager\Contracts\OAuth1\ProviderInterface|\SocialiteProviders\Manager\Contracts\OAuth2\ProviderInterface $config |
|
15 | + * @param ConfigInterface $config |
|
16 | 16 | */ |
17 | 17 | public function setConfig(ConfigInterface $config) |
18 | 18 | { |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | $this->getFromServices('client_id'), |
49 | 49 | $this->getFromServices('client_secret'), |
50 | 50 | $this->getFromServices('redirect'), |
51 | - $this->getConfigItems($additionalConfigKeys, function ($key) { |
|
51 | + $this->getConfigItems($additionalConfigKeys, function($key) { |
|
52 | 52 | return $this->getFromServices(strtolower($key)); |
53 | 53 | }) |
54 | 54 | ); |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | |
96 | 96 | // ADDITIONAL value is empty |
97 | 97 | if (!$keyExists && $this->isAdditionalConfig($key)) { |
98 | - return $key == 'guzzle' ? [] : null ; |
|
98 | + return $key == 'guzzle' ? [] : null; |
|
99 | 99 | } |
100 | 100 | |
101 | 101 | // REQUIRED value is empty |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | { |
16 | 16 | if ($this->app instanceof \Illuminate\Foundation\Application) { |
17 | 17 | // Laravel |
18 | - $this->app->booted(function () { |
|
18 | + $this->app->booted(function() { |
|
19 | 19 | $socialiteWasCalled = app(SocialiteWasCalled::class); |
20 | 20 | |
21 | 21 | event($socialiteWasCalled); |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | } |
41 | 41 | |
42 | 42 | if (!$this->app->bound(ConfigRetrieverInterface::class)) { |
43 | - $this->app->singleton(ConfigRetrieverInterface::class, function () { |
|
43 | + $this->app->singleton(ConfigRetrieverInterface::class, function() { |
|
44 | 44 | return new ConfigRetriever(); |
45 | 45 | }); |
46 | 46 | } |