@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | |
| 103 | 103 | if (!$input->getArgument('username')) { |
| 104 | 104 | $question = new Question('Please choose a username:'); |
| 105 | - $question->setValidator(function ($username) { |
|
| 105 | + $question->setValidator(function($username) { |
|
| 106 | 106 | if (empty($username)) { |
| 107 | 107 | throw new \Exception('Username can not be empty'); |
| 108 | 108 | } |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | |
| 115 | 115 | if (!$input->getArgument('email')) { |
| 116 | 116 | $question = new Question('Please choose an email:'); |
| 117 | - $question->setValidator(function ($email) { |
|
| 117 | + $question->setValidator(function($email) { |
|
| 118 | 118 | if (empty($email)) { |
| 119 | 119 | throw new \Exception('Email can not be empty'); |
| 120 | 120 | } |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | |
| 127 | 127 | if (!$input->getArgument('password')) { |
| 128 | 128 | $question = new Question('Please choose a password:'); |
| 129 | - $question->setValidator(function ($password) { |
|
| 129 | + $question->setValidator(function($password) { |
|
| 130 | 130 | if (empty($password)) { |
| 131 | 131 | throw new \Exception('Password can not be empty'); |
| 132 | 132 | } |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | public function sendResetPasswordEmail(UserInterface $user, |
| 79 | - ResetPasswordToken $resetToken |
|
| 79 | + ResetPasswordToken $resetToken |
|
| 80 | 80 | ): void |
| 81 | 81 | { |
| 82 | 82 | $email = (new TemplatedEmail()) |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | $tenant = $tenantContext->getTenant(); |
| 49 | 49 | |
| 50 | 50 | if ($tenant instanceof SettingsOwnerInterface) { |
| 51 | - $fromEmail = ['contact@' . $tenant->getDomainName() => 'contact']; |
|
| 51 | + $fromEmail = ['contact@'.$tenant->getDomainName() => 'contact']; |
|
| 52 | 52 | |
| 53 | 53 | $this->parameters['confirmation.template'] = |
| 54 | 54 | $settingsManager->get('registration_confirmation.template', 'tenant', $tenant); |
@@ -160,9 +160,9 @@ |
||
| 160 | 160 | $resetToken = $this->resetPasswordHelper->generateResetToken($user); |
| 161 | 161 | } catch (ResetPasswordExceptionInterface $e) { |
| 162 | 162 | $this->addFlash('reset_password_error', sprintf( |
| 163 | - 'There was a problem handling your password reset request - %s', |
|
| 164 | - $e->getReason() |
|
| 165 | - )); |
|
| 163 | + 'There was a problem handling your password reset request - %s', |
|
| 164 | + $e->getReason() |
|
| 165 | + )); |
|
| 166 | 166 | |
| 167 | 167 | return $this->redirectToRoute('swp_user_check_email'); |
| 168 | 168 | } |