@@ -41,7 +41,7 @@ |
||
| 41 | 41 | |
| 42 | 42 | if (null === $roleName) { |
| 43 | 43 | $question = new Question('Enter a role name. Example ROLE_USER: '); |
| 44 | - $question->setValidator(function ($answer) { |
|
| 44 | + $question->setValidator(function($answer) { |
|
| 45 | 45 | if (null === $answer) { |
| 46 | 46 | throw new \Exception('The role name cannot be empty'); |
| 47 | 47 | } |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | |
| 45 | 45 | if (null === $email) { |
| 46 | 46 | $question = new Question('Please, enter the email address of the user: '); |
| 47 | - $question->setValidator(function ($answer) { |
|
| 47 | + $question->setValidator(function($answer) { |
|
| 48 | 48 | if (null === $answer) { |
| 49 | 49 | throw new \Exception('The email address of the user to promote is required'); |
| 50 | 50 | } |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | $isEmailOk = true; |
| 69 | 69 | } else { |
| 70 | 70 | $question = new Question('Enter the email address of the new user: '); |
| 71 | - $question->setValidator(function ($answer) { |
|
| 71 | + $question->setValidator(function($answer) { |
|
| 72 | 72 | if (null === $answer) { |
| 73 | 73 | throw new \Exception('The email address is required to create a new user'); |
| 74 | 74 | } |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | $question = new Question('Enter a password: '); |
| 84 | - $question->setValidator(function ($answer) { |
|
| 84 | + $question->setValidator(function($answer) { |
|
| 85 | 85 | if (null === $answer || '' === trim($answer)) { |
| 86 | 86 | throw new \Exception('The password can\'t be empty'); |
| 87 | 87 | } |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | $password = $helper->ask($input, $output, $question); |
| 96 | 96 | |
| 97 | 97 | $question = new Question('Enter the name of the new user: '); |
| 98 | - $question->setValidator(function ($answer) { |
|
| 98 | + $question->setValidator(function($answer) { |
|
| 99 | 99 | if (null === $answer) { |
| 100 | 100 | throw new \Exception('The name field is required to create a new user'); |
| 101 | 101 | } |