@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | |
| 149 | 149 | $question->setValidator(['Sensio\Bundle\GeneratorBundle\Command\Validators', 'validateBundleName']); |
| 150 | 150 | $question->setNormalizer( |
| 151 | - function ($value) { |
|
| 151 | + function($value) { |
|
| 152 | 152 | return $value ? trim($value) : ''; |
| 153 | 153 | } |
| 154 | 154 | ); |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | $input->getOption('entity_name') |
| 172 | 172 | ); |
| 173 | 173 | $question->setValidator( |
| 174 | - function ($answer) { |
|
| 174 | + function($answer) { |
|
| 175 | 175 | // Should only contain letters. |
| 176 | 176 | $valid = preg_match('/^[a-zA-Z]+$/', $answer); |
| 177 | 177 | if (!$valid) { |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | } |
| 185 | 185 | ); |
| 186 | 186 | $question->setNormalizer( |
| 187 | - function ($value) { |
|
| 187 | + function($value) { |
|
| 188 | 188 | return $value ? trim($value) : ''; |
| 189 | 189 | } |
| 190 | 190 | ); |
@@ -264,12 +264,12 @@ discard block |
||
| 264 | 264 | ), 'yes' |
| 265 | 265 | ); |
| 266 | 266 | $question->setNormalizer( |
| 267 | - function ($value) { |
|
| 267 | + function($value) { |
|
| 268 | 268 | return $value[0] == 'y' ? 'y' : 'n'; |
| 269 | 269 | } |
| 270 | 270 | ); |
| 271 | 271 | $question->setValidator( |
| 272 | - function ($answer) { |
|
| 272 | + function($answer) { |
|
| 273 | 273 | // Should only contain letters. |
| 274 | 274 | $allowed = [ |
| 275 | 275 | 'y', |