@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | public function configureOptions(OptionsResolver $resolver) |
| 34 | 34 | { |
| 35 | 35 | $resolver->setDefault('error_bubbling', false); |
| 36 | - $resolver->setNormalizer('widget_config', function (Options $options, $value) { |
|
| 36 | + $resolver->setNormalizer('widget_config', function(Options $options, $value) { |
|
| 37 | 37 | $widget_defaults = [ |
| 38 | 38 | 'creation_mode_enabled' => false, |
| 39 | 39 | 'class' => null, |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | |
| 67 | 67 | return helper::normalize($widget_defaults, $value); |
| 68 | 68 | }); |
| 69 | - $resolver->setNormalizer('type_config', function (Options $options, $value) { |
|
| 69 | + $resolver->setNormalizer('type_config', function(Options $options, $value) { |
|
| 70 | 70 | $type_defaults = [ |
| 71 | 71 | 'options' => [], |
| 72 | 72 | 'method' => 'GET', |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | public function finishView(FormView $view, FormInterface $form, array $options) |
| 109 | 109 | { |
| 110 | 110 | $preset = []; |
| 111 | - if ( !empty($view->children['selection']->vars['data']) |
|
| 111 | + if (!empty($view->children['selection']->vars['data']) |
|
| 112 | 112 | && !empty($options['widget_config']['class'])) { |
| 113 | 113 | foreach (array_filter((array) $view->children['selection']->vars['data']) as $identifier) { |
| 114 | 114 | if ($options['widget_config']['id_field'] == 'id') { |