@@ -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', |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | $dpKey = substr($key, 3); |
| 44 | 44 | $dpKey = preg_replace_callback( |
| 45 | 45 | '/_([a-z])/', |
| 46 | - function ($c) { |
|
| 46 | + function($c) { |
|
| 47 | 47 | return strtoupper($c[1]); |
| 48 | 48 | }, |
| 49 | 49 | $dpKey |
@@ -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', |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | public static function getExtendedTypes(): iterable |
| 72 | 72 | { |
| 73 | 73 | return [ |
| 74 | - FileType::class, |
|
| 74 | + FileType::class, |
|
| 75 | 75 | ]; |
| 76 | 76 | } |
| 77 | 77 | } |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | public static function getExtendedTypes(): iterable |
| 72 | 72 | { |
| 73 | 73 | return [ |
| 74 | - FileType::class, |
|
| 74 | + FileType::class, |
|
| 75 | 75 | ]; |
| 76 | 76 | } |
| 77 | 77 | } |