@@ -84,7 +84,7 @@ |
||
| 84 | 84 | $resolver->setDefaults([ |
| 85 | 85 | 'translator' => null, |
| 86 | 86 | 'includeReset' => false, |
| 87 | - 'constraints' => new Callback(['callback' => function ($data, ExecutionContextInterface $context) use ($resolver) { |
|
| 87 | + 'constraints' => new Callback(['callback' => function($data, ExecutionContextInterface $context) use ($resolver) { |
|
| 88 | 88 | if (!isset($data['pass']) && empty($data['uname']) && empty($data['email'])) { |
| 89 | 89 | $context->buildViolation('Error! You must enter either your username or email address.') |
| 90 | 90 | ->addViolation(); |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | /** |
| 133 | 133 | * Form Listeners |
| 134 | 134 | */ |
| 135 | - ->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) { |
|
| 135 | + ->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) { |
|
| 136 | 136 | $data = $event->getData(); |
| 137 | 137 | // clear anti-spam answer if there is no question |
| 138 | 138 | if (empty($data[ZAuthConstant::MODVAR_REGISTRATION_ANTISPAM_QUESTION])) { |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | 'translator' => null, |
| 161 | 161 | 'constraints' => [ |
| 162 | 162 | new Callback([ |
| 163 | - 'callback' => function ($data, ExecutionContextInterface $context) { |
|
| 163 | + 'callback' => function($data, ExecutionContextInterface $context) { |
|
| 164 | 164 | if (!empty($data[ZAuthConstant::MODVAR_REGISTRATION_ANTISPAM_QUESTION]) && empty($data[ZAuthConstant::MODVAR_REGISTRATION_ANTISPAM_ANSWER])) { |
| 165 | 165 | $context->buildViolation('If a spam protection question is provided, then a spam protection answer must also be provided.') |
| 166 | 166 | ->atPath(ZAuthConstant::MODVAR_REGISTRATION_ANTISPAM_ANSWER) |