@@ -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', |
@@ -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 |
@@ -110,7 +110,7 @@ |
||
110 | 110 | $propertyAccessor = PropertyAccess::createPropertyAccessor(); |
111 | 111 | |
112 | 112 | try { |
113 | - $value = $propertyAccessor->getValue($object, $field); |
|
113 | + $value = $propertyAccessor->getValue($object, $field); |
|
114 | 114 | } catch (NoSuchPropertyException $e) { |
115 | 115 | throw new InvalidArgumentException($e->getMessage()); |
116 | 116 | } |
@@ -75,7 +75,7 @@ |
||
75 | 75 | */ |
76 | 76 | public function getSeconds(): int |
77 | 77 | { |
78 | - $seconds = $this->getDay() * 86400; |
|
78 | + $seconds = $this->getDay() * 86400; |
|
79 | 79 | |
80 | 80 | if (null !== $this->getTime()) { |
81 | 81 | $time = clone $this->getTime(); |
@@ -31,7 +31,7 @@ |
||
31 | 31 | 'male' => static::TYPE_MALE, |
32 | 32 | 'female' => static::TYPE_FEMALE, |
33 | 33 | ], |
34 | - 'choice_label' => static function ($value, $key, $index) { |
|
34 | + 'choice_label' => static function($value, $key, $index) { |
|
35 | 35 | return 'gender.'.$key; |
36 | 36 | }, |
37 | 37 | 'choice_translation_domain' => 'Core23FormBundle', |
@@ -45,7 +45,7 @@ |
||
45 | 45 | */ |
46 | 46 | public function configureOptions(OptionsResolver $resolver): void |
47 | 47 | { |
48 | - $helpTranslationDomainNormalizer = static function (Options $options, $helpTranslationDomain) { |
|
48 | + $helpTranslationDomainNormalizer = static function(Options $options, $helpTranslationDomain) { |
|
49 | 49 | if (null === $helpTranslationDomain && $options->offsetExists('translation_domain')) { |
50 | 50 | return $options->offsetGet('translation_domain'); |
51 | 51 | } |
@@ -174,7 +174,7 @@ |
||
174 | 174 | */ |
175 | 175 | private function equalToErrors(): Constraint |
176 | 176 | { |
177 | - return static::callback(function ($error) { |
|
177 | + return static::callback(function($error) { |
|
178 | 178 | if ($error instanceof FormError) { |
179 | 179 | foreach ($this->errors as &$data) { |
180 | 180 | if ($error->getMessage() === $data['message'] && $error->getMessageParameters() === $data['parameters']) { |