| @@ -23,9 +23,9 @@ discard block | ||
| 23 | 23 | $usersLoop = $this->getUsersToProcess($users, $usersLoop, $filePathUsers); | 
| 24 | 24 | $errors = $imported = 0; | 
| 25 | 25 | |
| 26 | -        foreach($usersLoop as $userToInvite){ | |
| 26 | +        foreach ($usersLoop as $userToInvite) { | |
| 27 | 27 | $validator = $this->validateUserData($userToInvite); | 
| 28 | -            if($validator->fails()){ | |
| 28 | +            if ($validator->fails()) { | |
| 29 | 29 | $userToInvite['error'] = 'email.error.syntax'; | 
| 30 | 30 | $usersToProcess['users'][] = $userToInvite; | 
| 31 | 31 | $errors++; | 
| @@ -35,7 +35,7 @@ discard block | ||
| 35 | 35 | list($userToInvite, $errors) = $this->checkIfUserAlreadyIn($organizationId, $userToInvite, $errors); | 
| 36 | 36 | |
| 37 | 37 | $usersToProcess['users'][] = $userToInvite; | 
| 38 | -            if(!isset($userToInvite["error"])){ | |
| 38 | +            if (!isset($userToInvite["error"])) { | |
| 39 | 39 | $imported++; | 
| 40 | 40 | } | 
| 41 | 41 | } | 
| @@ -31,7 +31,7 @@ discard block | ||
| 31 | 31 |      { | 
| 32 | 32 | $email = $firstname = $lastname = ''; | 
| 33 | 33 | |
| 34 | -        if($request->session()->has('user_to_register')){ | |
| 34 | +        if ($request->session()->has('user_to_register')) { | |
| 35 | 35 |              $user = $request->session()->get('user_to_register'); | 
| 36 | 36 | $email = $user['email']; | 
| 37 | 37 | $firstname = $user['firstname']; | 
| @@ -47,7 +47,7 @@ discard block | ||
| 47 | 47 | |
| 48 | 48 | protected function validator(array $data) | 
| 49 | 49 |      { | 
| 50 | -        if(session()->has('should_attach_to_organization')) { | |
| 50 | +        if (session()->has('should_attach_to_organization')) { | |
| 51 | 51 | session()->reflash(); | 
| 52 | 52 | } | 
| 53 | 53 | return Validator::make($data, [ | 
| @@ -68,7 +68,7 @@ discard block | ||
| 68 | 68 | |
| 69 | 69 | protected function registered(Request $request, $user) | 
| 70 | 70 |      { | 
| 71 | -        if($request->session()->has('should_attach_to_organization')){ | |
| 71 | +        if ($request->session()->has('should_attach_to_organization')) { | |
| 72 | 72 |              app(AttachUserToAnOrganization::class)->attach($user->uuid, $request->session()->get('should_attach_to_organization')); | 
| 73 | 73 | } | 
| 74 | 74 | } | 
| @@ -88,7 +88,7 @@ discard block | ||
| 88 | 88 | return $request->wantsJson() | 
| 89 | 89 |                  ? new Response('', 201) | 
| 90 | 90 | : redirect($this->redirectPath()); | 
| 91 | -        }catch (ValidationException $e) { | |
| 91 | +        } catch (ValidationException $e) { | |
| 92 | 92 | $attributes = $e->validator->attributes(); | 
| 93 | 93 | $attributes['provider'] = $provider; | 
| 94 | 94 |              return redirect()->route('register-social-network') |