Passed
Push — master ( 9511a8...de0418 )
by Benjamin
07:41 queued 03:07
created
src/elements/LoginAccount.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/loginproviders/Twitter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Plugin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.