Passed
Push — master ( 3a48e1...940dff )
by
unknown
37:58
created
Customer/src/Spryker/Zed/Customer/Communication/Form/CustomerForm.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
             'help' => 'Used to provide context in email templates.',
333 333
             'constraints' => [
334 334
                 new Callback([
335
-                    'callback' => function ($object, ExecutionContextInterface $context) {
335
+                    'callback' => function($object, ExecutionContextInterface $context) {
336 336
                         $form = $context->getRoot();
337 337
                         if ($form[self::FIELD_SEND_PASSWORD_TOKEN]->getData() === true && !$object) {
338 338
                             $context->buildViolation('This field is required.')->addViolation();
@@ -405,7 +405,7 @@  discard block
 block discarded – undo
405 405
         $customerQuery = $this->getQueryContainer()->queryCustomers();
406 406
 
407 407
         $emailConstraints[] = new Callback([
408
-            'callback' => function ($email, ExecutionContextInterface $context) use ($customerQuery, $currentEmail) {
408
+            'callback' => function($email, ExecutionContextInterface $context) use ($customerQuery, $currentEmail) {
409 409
                 if ($currentEmail !== null && $email === $currentEmail) {
410 410
                     return;
411 411
                 }
@@ -461,12 +461,12 @@  discard block
 block discarded – undo
461 461
     protected function createDateTimeModelTransformer(): CallbackTransformer
462 462
     {
463 463
         return new CallbackTransformer(
464
-            function ($dateAsString) {
464
+            function($dateAsString) {
465 465
                 if ($dateAsString !== null) {
466 466
                     return new DateTime($dateAsString);
467 467
                 }
468 468
             },
469
-            function ($dateAsObject) {
469
+            function($dateAsObject) {
470 470
                 return $dateAsObject;
471 471
             },
472 472
         );
@@ -478,12 +478,12 @@  discard block
 block discarded – undo
478 478
     protected function createLocaleModelTransformer(): CallbackTransformer
479 479
     {
480 480
         return new CallbackTransformer(
481
-            function ($localeAsObject) {
481
+            function($localeAsObject) {
482 482
                 if ($localeAsObject !== null) {
483 483
                     return $localeAsObject->getIdLocale();
484 484
                 }
485 485
             },
486
-            function ($localeAsInt) {
486
+            function($localeAsInt) {
487 487
                 if ($localeAsInt !== null) {
488 488
                     return $this->getFactory()->getLocaleFacade()->getLocaleById($localeAsInt);
489 489
                 }
Please login to merge, or discard this patch.