Completed
Branch master (4c2631)
by Beñat
03:08
created
Category
src/BenGor/UserBundle/Command/CreateUserCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
         $questions = [];
131 131
         if (!$input->getArgument('email')) {
132 132
             $question = new Question('Please choose an email:');
133
-            $question->setValidator(function ($email) {
133
+            $question->setValidator(function($email) {
134 134
                 if (empty($email)) {
135 135
                     throw new \Exception('Email can not be empty');
136 136
                 }
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
         }
142 142
         if (!$input->getArgument('password')) {
143 143
             $question = new Question('Please choose a password:');
144
-            $question->setValidator(function ($password) {
144
+            $question->setValidator(function($password) {
145 145
                 if (empty($password)) {
146 146
                     throw new \Exception('Password can not be empty');
147 147
                 }
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
                     implode(' ', call_user_func([$this->fqcn, 'availableRoles']))
159 159
                 )
160 160
             );
161
-            $question->setValidator(function ($roles) {
161
+            $question->setValidator(function($roles) {
162 162
                 if (empty($roles)) {
163 163
                     $roles = implode(' ', call_user_func([$this->fqcn, 'availableRoles']));
164 164
                 }
Please login to merge, or discard this patch.