@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | |
| 62 | 62 | $socialite->extend( |
| 63 | 63 | $providerName, |
| 64 | - function () use ($socialite, $providerName, $providerClass, $oauth1Server) { |
|
| 64 | + function() use ($socialite, $providerName, $providerClass, $oauth1Server) { |
|
| 65 | 65 | $provider = $this->buildProvider($socialite, $providerName, $providerClass, $oauth1Server); |
| 66 | 66 | if (defined('SOCIALITEPROVIDERS_STATELESS') && SOCIALITEPROVIDERS_STATELESS) { |
| 67 | 67 | return $provider->stateless(); |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | */ |
| 174 | 174 | private function isOAuth1($oauth1Server) |
| 175 | 175 | { |
| 176 | - return ! empty($oauth1Server); |
|
| 176 | + return !empty($oauth1Server); |
|
| 177 | 177 | } |
| 178 | 178 | |
| 179 | 179 | /** |
@@ -196,7 +196,7 @@ discard block |
||
| 196 | 196 | */ |
| 197 | 197 | private function classExists($providerClass) |
| 198 | 198 | { |
| 199 | - if (! class_exists($providerClass)) { |
|
| 199 | + if (!class_exists($providerClass)) { |
|
| 200 | 200 | throw new InvalidArgumentException("{$providerClass} doesn't exist"); |
| 201 | 201 | } |
| 202 | 202 | } |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | $this->getFromServices('client_id'), |
| 48 | 48 | $this->getFromServices('client_secret'), |
| 49 | 49 | $this->getFromServices('redirect'), |
| 50 | - $this->getConfigItems($additionalConfigKeys, function ($key) { |
|
| 50 | + $this->getConfigItems($additionalConfigKeys, function($key) { |
|
| 51 | 51 | return $this->getFromServices(strtolower($key)); |
| 52 | 52 | }) |
| 53 | 53 | ); |
@@ -97,12 +97,12 @@ discard block |
||
| 97 | 97 | $keyExists = array_key_exists($key, $this->servicesArray); |
| 98 | 98 | |
| 99 | 99 | // ADDITIONAL value is empty |
| 100 | - if (! $keyExists && $this->isAdditionalConfig($key)) { |
|
| 100 | + if (!$keyExists && $this->isAdditionalConfig($key)) { |
|
| 101 | 101 | return; |
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | // REQUIRED value is empty |
| 105 | - if (! $keyExists) { |
|
| 105 | + if (!$keyExists) { |
|
| 106 | 106 | throw new MissingConfigException("Missing services entry for {$this->providerName}.$key"); |
| 107 | 107 | } |
| 108 | 108 | |