@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | { |
| 66 | 66 | $resolver->setDefaults([ |
| 67 | 67 | 'by_reference' => false, |
| 68 | - 'empty_data' => function () { |
|
| 68 | + 'empty_data' => function() { |
|
| 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".')); |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | { |
| 65 | 65 | $resolver->setDefaults([ |
| 66 | 66 | 'by_reference' => false, |
| 67 | - 'empty_data' => function () { |
|
| 67 | + 'empty_data' => function() { |
|
| 68 | 68 | return new \Doctrine\Common\Collections\ArrayCollection(); |
| 69 | 69 | }, |
| 70 | 70 | 'locales' => $this->localeProvider->getLocales(), |