Passed
Push — develop ( 7d7406...426309 )
by Benjamin
04:28
created
Category
src/elements/LoginAccount.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@  discard block
 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
     /**
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/controllers/LoginAccountsController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.