@@ -82,9 +82,9 @@ discard block |
||
82 | 82 | public function buildForm(FormBuilderInterface $builder, array $options): void |
83 | 83 | { |
84 | 84 | $builder->addModelTransformer(new CallbackTransformer( |
85 | - function ($value) use ($options) { |
|
85 | + function($value) use ($options) { |
|
86 | 86 | return $this->transform($value, $options); |
87 | - }, function ($value) use ($options) { |
|
87 | + }, function($value) use ($options) { |
|
88 | 88 | return $this->reverseTransform($value, $options); |
89 | 89 | })); |
90 | 90 | } |
@@ -94,21 +94,21 @@ discard block |
||
94 | 94 | $resolver->setRequired(['class']); |
95 | 95 | $resolver->setDefaults([ |
96 | 96 | 'show_fullpath_in_subtext' => true, //When this is enabled, the full path will be shown in subtext |
97 | - 'subentities_of' => null, //Only show entities with the given parent class |
|
98 | - 'disable_not_selectable' => false, //Disable entries with not selectable property |
|
97 | + 'subentities_of' => null, //Only show entities with the given parent class |
|
98 | + 'disable_not_selectable' => false, //Disable entries with not selectable property |
|
99 | 99 | 'choice_value' => 'id', //Use the element id as option value and for comparing items |
100 | - 'choice_loader' => function (Options $options) { |
|
101 | - return new CallbackChoiceLoader(function () use ($options) { |
|
100 | + 'choice_loader' => function(Options $options) { |
|
101 | + return new CallbackChoiceLoader(function() use ($options) { |
|
102 | 102 | return $this->getEntries($options); |
103 | 103 | }); |
104 | 104 | }, |
105 | - 'choice_label' => function (Options $options) { |
|
106 | - return function ($choice, $key, $value) use ($options) { |
|
105 | + 'choice_label' => function(Options $options) { |
|
106 | + return function($choice, $key, $value) use ($options) { |
|
107 | 107 | return $this->generateChoiceLabels($choice, $key, $value, $options); |
108 | 108 | }; |
109 | 109 | }, |
110 | - 'choice_attr' => function (Options $options) { |
|
111 | - return function ($choice, $key, $value) use ($options) { |
|
110 | + 'choice_attr' => function(Options $options) { |
|
111 | + return function($choice, $key, $value) use ($options) { |
|
112 | 112 | return $this->generateChoiceAttr($choice, $key, $value, $options); |
113 | 113 | }; |
114 | 114 | }, |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | |
118 | 118 | $resolver->setDefault('empty_message', null); |
119 | 119 | |
120 | - $resolver->setDefault('attr', function (Options $options) { |
|
120 | + $resolver->setDefault('attr', function(Options $options) { |
|
121 | 121 | $tmp = [ |
122 | 122 | 'class' => 'selectpicker', |
123 | 123 | 'data-live-search' => true, |