@@ -165,7 +165,7 @@ |
||
| 165 | 165 | */ |
| 166 | 166 | private function equalToErrors(): Constraint |
| 167 | 167 | { |
| 168 | - return $this->callback(function ($error) { |
|
| 168 | + return $this->callback(function($error) { |
|
| 169 | 169 | if ($error instanceof FormError) { |
| 170 | 170 | foreach ($this->errors as &$data) { |
| 171 | 171 | if ($error->getMessage() === $data['message'] && $error->getMessageParameters() === $data['parameters']) { |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | */ |
| 50 | 50 | public function configureOptions(OptionsResolver $resolver): void |
| 51 | 51 | { |
| 52 | - $helpTranslationDomainNormalizer = function (Options $options, $helpTranslationDomain) { |
|
| 52 | + $helpTranslationDomainNormalizer = function(Options $options, $helpTranslationDomain) { |
|
| 53 | 53 | if (true === $helpTranslationDomain) { |
| 54 | 54 | return $options['translation_domain']; |
| 55 | 55 | } |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | |
| 27 | 27 | $resolver->setDefaults([ |
| 28 | 28 | 'choices' => array_combine($countries, $countries), |
| 29 | - 'choice_label' => function ($value, $key, $index) { |
|
| 29 | + 'choice_label' => function($value, $key, $index) { |
|
| 30 | 30 | return 'form.choice_'.strtolower($value); |
| 31 | 31 | }, |
| 32 | 32 | 'choice_translation_domain' => 'Core23FormBundle', |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | 'male' => static::TYPE_MALE, |
| 32 | 32 | 'female' => static::TYPE_FEMALE, |
| 33 | 33 | ], |
| 34 | - 'choice_label' => function ($value, $key, $index) { |
|
| 34 | + 'choice_label' => function($value, $key, $index) { |
|
| 35 | 35 | return 'gender.'.$key; |
| 36 | 36 | }, |
| 37 | 37 | 'choice_translation_domain' => 'Core23FormBundle', |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | */ |
| 25 | 25 | public function finishView(FormView $view, FormInterface $form, array $options): void |
| 26 | 26 | { |
| 27 | - $format = 'HH'; |
|
| 27 | + $format = 'HH'; |
|
| 28 | 28 | |
| 29 | 29 | if ($options['with_minutes']) { |
| 30 | 30 | $format .= ':mm'; |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | $dpKey = substr($key, 3); |
| 91 | 91 | $dpKey = preg_replace_callback( |
| 92 | 92 | '/_([a-z])/', |
| 93 | - function ($c) { |
|
| 93 | + function($c) { |
|
| 94 | 94 | return strtoupper($c[1]); |
| 95 | 95 | }, |
| 96 | 96 | $dpKey |