@@ -158,7 +158,7 @@ |
||
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 | /** |
@@ -56,7 +56,7 @@ |
||
56 | 56 | return null; |
57 | 57 | } |
58 | 58 | |
59 | - $profile = (array)$profile; |
|
59 | + $profile = (array) $profile; |
|
60 | 60 | $profile['id'] = $profile['uid']; |
61 | 61 | |
62 | 62 | return $profile; |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | */ |
162 | 162 | public function saveLoginProviderSettings($handle, $providerSettings) |
163 | 163 | { |
164 | - $settings = (array)Plugin::getInstance()->getSettings(); |
|
164 | + $settings = (array) Plugin::getInstance()->getSettings(); |
|
165 | 165 | $storedSettings = Craft::$app->plugins->getStoredPluginInfo('social')['settings']; |
166 | 166 | |
167 | 167 | $settings['loginProviders'] = []; |
@@ -220,7 +220,7 @@ discard block |
||
220 | 220 | |
221 | 221 | Craft::$app->getView()->registerAssetBundle(LoginAsset::class); |
222 | 222 | |
223 | - Craft::$app->getView()->registerJs('var socialLoginForm = new Craft.SocialLoginForm(' . json_encode($jsLoginProviders) . ', ' . json_encode($error) . ');'); |
|
223 | + Craft::$app->getView()->registerJs('var socialLoginForm = new Craft.SocialLoginForm('.json_encode($jsLoginProviders).', '.json_encode($error).');'); |
|
224 | 224 | } |
225 | 225 | } |
226 | 226 | } |