Completed
Push — master ( e04a88...42a5e8 )
by Craig
07:17
created
src/system/ZAuthModule/Form/Type/LostPasswordType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/system/ZAuthModule/Form/Type/ConfigType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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)
Please login to merge, or discard this patch.