| @@ -24,7 +24,7 @@ | ||
| 24 | 24 |      { | 
| 25 | 25 | // check manually if a key is given and if it exists in the config | 
| 26 | 26 | // this has to be done to check for spoofed additional config keys so that null isn't returned | 
| 27 | -        if (! empty($key) && empty($this->config[$key])) { | |
| 27 | +        if (!empty($key) && empty($this->config[$key])) { | |
| 28 | 28 | return $default; | 
| 29 | 29 | } | 
| 30 | 30 | |
| @@ -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 | } | 
| @@ -86,12 +86,12 @@ | ||
| 86 | 86 | $keyExists = array_key_exists($key, $this->servicesArray); | 
| 87 | 87 | |
| 88 | 88 | // ADDITIONAL value is empty | 
| 89 | -        if (! $keyExists && $this->isAdditionalConfig($key)) { | |
| 89 | +        if (!$keyExists && $this->isAdditionalConfig($key)) { | |
| 90 | 90 | return $key == 'guzzle' ? [] : null; | 
| 91 | 91 | } | 
| 92 | 92 | |
| 93 | 93 | // REQUIRED value is empty | 
| 94 | -        if (! $keyExists) { | |
| 94 | +        if (!$keyExists) { | |
| 95 | 95 |              throw new MissingConfigException("Missing services entry for {$this->providerName}.$key"); | 
| 96 | 96 | } | 
| 97 | 97 | |
| @@ -109,7 +109,7 @@ | ||
| 109 | 109 |      { | 
| 110 | 110 | $scopesRaw = Arr::get($body, 'scope', null); | 
| 111 | 111 | |
| 112 | -        if (! is_array($scopesRaw) && ! is_string($scopesRaw)) { | |
| 112 | +        if (!is_array($scopesRaw) && !is_string($scopesRaw)) { | |
| 113 | 113 | return []; | 
| 114 | 114 | } | 
| 115 | 115 | |
| @@ -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); | 
| @@ -35,11 +35,11 @@ discard block | ||
| 35 | 35 |      { | 
| 36 | 36 | parent::register(); | 
| 37 | 37 | |
| 38 | -        if (class_exists('Laravel\Lumen\Application') && ! defined('SOCIALITEPROVIDERS_STATELESS')) { | |
| 38 | +        if (class_exists('Laravel\Lumen\Application') && !defined('SOCIALITEPROVIDERS_STATELESS')) { | |
| 39 | 39 |              define('SOCIALITEPROVIDERS_STATELESS', true); | 
| 40 | 40 | } | 
| 41 | 41 | |
| 42 | -        if (! $this->app->bound(ConfigRetrieverInterface::class)) { | |
| 42 | +        if (!$this->app->bound(ConfigRetrieverInterface::class)) { | |
| 43 | 43 | $this->app->singleton(ConfigRetrieverInterface::class, fn () => new ConfigRetriever); | 
| 44 | 44 | } | 
| 45 | 45 | } | 
| @@ -43,7 +43,7 @@ discard block | ||
| 43 | 43 | */ | 
| 44 | 44 | public function user() | 
| 45 | 45 |      { | 
| 46 | -        if (! $this->hasNecessaryVerifier()) { | |
| 46 | +        if (!$this->hasNecessaryVerifier()) { | |
| 47 | 47 |              throw new InvalidArgumentException('Invalid request. Missing OAuth verifier.'); | 
| 48 | 48 | } | 
| 49 | 49 | |
| @@ -57,7 +57,7 @@ discard block | ||
| 57 | 57 |          if ($user instanceof User) { | 
| 58 | 58 | parse_str((string) $token['credentialsResponseBody'], $credentialsResponseBody); | 
| 59 | 59 | |
| 60 | -            if (! $credentialsResponseBody || ! is_array($credentialsResponseBody)) { | |
| 60 | +            if (!$credentialsResponseBody || !is_array($credentialsResponseBody)) { | |
| 61 | 61 |                  throw new CredentialsException('Unable to parse token credentials response.'); | 
| 62 | 62 | } | 
| 63 | 63 | |
| @@ -91,7 +91,7 @@ discard block | ||
| 91 | 91 | */ | 
| 92 | 92 | public function redirect() | 
| 93 | 93 |      { | 
| 94 | -        if (! $this->isStateless()) { | |
| 94 | +        if (!$this->isStateless()) { | |
| 95 | 95 | $this->request->getSession()->put( | 
| 96 | 96 | 'oauth.temp', $temp = $this->server->getTemporaryCredentials() | 
| 97 | 97 | ); | 
| @@ -160,7 +160,7 @@ discard block | ||
| 160 | 160 | */ | 
| 161 | 161 | protected function getToken() | 
| 162 | 162 |      { | 
| 163 | -        if (! $this->isStateless()) { | |
| 163 | +        if (!$this->isStateless()) { | |
| 164 | 164 |              $temp = $this->request->getSession()->get('oauth.temp'); | 
| 165 | 165 | |
| 166 | 166 | return $this->server->getTokenCredentials( |