@@ -35,7 +35,7 @@ |
||
35 | 35 | $provider = $this->buildProvider($socialite, $providerName, $providerClass, $oauth1Server); |
36 | 36 | $socialite->extend( |
37 | 37 | $providerName, |
38 | - function () use ($provider) { |
|
38 | + function() use ($provider) { |
|
39 | 39 | return $provider; |
40 | 40 | } |
41 | 41 | ); |
@@ -56,11 +56,11 @@ discard block |
||
56 | 56 | |
57 | 57 | /** |
58 | 58 | * @param SocialiteManager $socialite |
59 | - * @param $providerName |
|
59 | + * @param string $providerName |
|
60 | 60 | * @param string $providerClass |
61 | 61 | * @param null|string $oauth1Server |
62 | 62 | * |
63 | - * @return \Laravel\Socialite\One\AbstractProvider|\Laravel\Socialite\Two\AbstractProvider |
|
63 | + * @return string |
|
64 | 64 | */ |
65 | 65 | protected function buildProvider(SocialiteManager $socialite, $providerName, $providerClass, $oauth1Server) |
66 | 66 | { |
@@ -167,6 +167,9 @@ discard block |
||
167 | 167 | } |
168 | 168 | } |
169 | 169 | |
170 | + /** |
|
171 | + * @param string|null $providerClass |
|
172 | + */ |
|
170 | 173 | private function classExists($providerClass) |
171 | 174 | { |
172 | 175 | if (!class_exists($providerClass)) { |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | $this->getFromEnv("KEY"), |
39 | 39 | $this->getFromEnv("SECRET"), |
40 | 40 | $this->getFromEnv("REDIRECT_URI"), |
41 | - $this->getConfigItems($additionalConfigKeys, function ($key) { |
|
41 | + $this->getConfigItems($additionalConfigKeys, function($key) { |
|
42 | 42 | return $this->getFromEnv($key); |
43 | 43 | })); |
44 | 44 | } |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | $this->getFromServices('client_id'), |
59 | 59 | $this->getFromServices('client_secret'), |
60 | 60 | $this->getFromServices('redirect'), |
61 | - $this->getConfigItems($additionalConfigKeys, function ($key) { |
|
61 | + $this->getConfigItems($additionalConfigKeys, function($key) { |
|
62 | 62 | return $this->getFromServices($key); |
63 | 63 | })); |
64 | 64 | } |
@@ -11,8 +11,6 @@ |
||
11 | 11 | class LumenServiceProvider extends SocialiteServiceProvider |
12 | 12 | { |
13 | 13 | /** |
14 | - * @param Dispatcher $event |
|
15 | - * @param SocialiteWasCalled $socialiteWasCalled |
|
16 | 14 | */ |
17 | 15 | public function boot() |
18 | 16 | { |
@@ -25,7 +25,7 @@ |
||
25 | 25 | { |
26 | 26 | parent::register(); |
27 | 27 | |
28 | - $this->app->singleton(ConfigRetrieverInterface::class, function () { |
|
28 | + $this->app->singleton(ConfigRetrieverInterface::class, function() { |
|
29 | 29 | return new ConfigRetriever(); |
30 | 30 | }); |
31 | 31 | } |
@@ -23,7 +23,7 @@ |
||
23 | 23 | { |
24 | 24 | parent::register(); |
25 | 25 | |
26 | - $this->app->singleton(ConfigRetrieverInterface::class, function () { |
|
26 | + $this->app->singleton(ConfigRetrieverInterface::class, function() { |
|
27 | 27 | return new ConfigRetriever(); |
28 | 28 | }); |
29 | 29 | } |