@@ -95,6 +95,9 @@  | 
                                                    ||
| 95 | 95 | return $out;  | 
                                                        
| 96 | 96 | }  | 
                                                        
| 97 | 97 | |
| 98 | + /**  | 
                                                        |
| 99 | + * @return string  | 
                                                        |
| 100 | + */  | 
                                                        |
| 98 | 101 | private function getFromServices($key)  | 
                                                        
| 99 | 102 |      { | 
                                                        
| 100 | 103 |          if (!array_key_exists($key, $this->servicesArray)) { | 
                                                        
@@ -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 | }  | 
                                                        
@@ -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)) { |