@@ -332,7 +332,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 | } |