@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | { |
66 | 66 | $resolver->setDefaults([ |
67 | 67 | 'by_reference' => false, |
68 | - 'empty_data' => function (FormInterface $form) { |
|
68 | + 'empty_data' => function(FormInterface $form) { |
|
69 | 69 | return new \Doctrine\Common\Collections\ArrayCollection(); |
70 | 70 | }, |
71 | 71 | 'locales' => $this->localeProvider->getLocales(), |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | 'form_options' => [], |
76 | 76 | ]); |
77 | 77 | |
78 | - $resolver->setNormalizer('form_options', function (Options $options, $value) { |
|
78 | + $resolver->setNormalizer('form_options', function(Options $options, $value) { |
|
79 | 79 | // Check mandatory data_class option when AutoFormType use |
80 | 80 | if (is_a($options['form_type'], AutoFormType::class, true) && !isset($value['data_class'])) { |
81 | 81 | throw new \RuntimeException(sprintf('Missing "data_class" option under "form_options" of TranslationsFormsType. Required when "form_type" use "AutoFormType".')); |