Passed
Push — master ( cf340d...4e06a8 )
by Arthur
06:10
created
src/Modules/Auth0/Services/Auth0Service.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 
43 43
     public function getUserByUserInfo($userInfo)
44 44
     {
45
-        return $this->upsertUser($userInfo['profile']);
45
+        return $this->upsertUser($userInfo[ 'profile' ]);
46 46
     }
47 47
 
48 48
     protected function upsertUser($profile)
@@ -51,8 +51,8 @@  discard block
 block discarded – undo
51 51
             throw new BadRequestHttpException('Missing token information: Auth0 user id is not set');
52 52
         }
53 53
         $identifier = explode('|', $profile->user_id);
54
-        $identityProvider = $identifier[0];
55
-        $id = $identifier[1];
54
+        $identityProvider = $identifier[ 0 ];
55
+        $id = $identifier[ 1 ];
56 56
 
57 57
         $user = $this->service->find($id);
58 58
         if ($user === null) {
Please login to merge, or discard this patch.