@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | /** @noinspection PhpInconsistentReturnPointsInspection */ |
| 159 | 159 | public function __toString() |
| 160 | 160 | { |
| 161 | - return (string)$this->socialUid; |
|
| 161 | + return (string) $this->socialUid; |
|
| 162 | 162 | } |
| 163 | 163 | |
| 164 | 164 | /** |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | |
| 176 | 176 | $attributes = $socialLoginProvider->getProfile($token); |
| 177 | 177 | |
| 178 | - $socialUid = (string)$attributes['id']; |
|
| 178 | + $socialUid = (string) $attributes['id']; |
|
| 179 | 179 | |
| 180 | 180 | return $this->socialUid === $socialUid; |
| 181 | 181 | } |
@@ -190,7 +190,7 @@ discard block |
||
| 190 | 190 | $errorMsg = 'Couldn’t login.'; |
| 191 | 191 | } |
| 192 | 192 | |
| 193 | - Craft::error((string)$response, __METHOD__); |
|
| 193 | + Craft::error((string) $response, __METHOD__); |
|
| 194 | 194 | Craft::$app->getSession()->setFlash('error', $errorMsg); |
| 195 | 195 | $this->_cleanSession(); |
| 196 | 196 | |
@@ -529,7 +529,7 @@ discard block |
||
| 529 | 529 | |
| 530 | 530 | foreach ($userMapping as $attribute => $template) { |
| 531 | 531 | // Only fill other fields than `email` and `username` when `autoFillProfile` is true |
| 532 | - if(!$settings['autoFillProfile'] && ($attribute !== 'email' || $attribute !== 'username')) { |
|
| 532 | + if (!$settings['autoFillProfile'] && ($attribute !== 'email' || $attribute !== 'username')) { |
|
| 533 | 533 | continue; |
| 534 | 534 | } |
| 535 | 535 | |