Passed
Push — develop ( 56b6bb...93a420 )
by Benjamin
03:13
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.
src/controllers/LoginAccountsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -544,7 +544,7 @@
 block discarded – undo
544 544
         foreach ($userFieldMapping as $attribute => $template) {
545 545
             // Only fill other fields than `email` and `username` when `autoFillProfile` is true
546 546
             if (!$settings['autoFillProfile']) {
547
-                if($attribute !== 'email' && $attribute !== 'username') {
547
+                if ($attribute !== 'email' && $attribute !== 'username') {
548 548
                     continue;
549 549
                 }
550 550
             }
Please login to merge, or discard this patch.