@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | ], |
123 | 123 | 'choice_translation_domain' => false, |
124 | 124 | 'choices' => User::AVAILABLE_THEMES, |
125 | - 'choice_label' => static function ($entity, $key, $value) { |
|
125 | + 'choice_label' => static function($entity, $key, $value) { |
|
126 | 126 | return $value; |
127 | 127 | }, |
128 | 128 | 'placeholder' => 'user_settings.theme.placeholder', |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | ->add('reset', ResetType::class, ['label' => 'reset']); |
140 | 140 | |
141 | 141 | //Add the remove_avatar button if the user has an avatar (we have to add this dynamically) |
142 | - $builder->addEventListener(FormEvents::PRE_SET_DATA, function (PreSetDataEvent $event) { |
|
142 | + $builder->addEventListener(FormEvents::PRE_SET_DATA, function(PreSetDataEvent $event) { |
|
143 | 143 | $data = $event->getData(); |
144 | 144 | if (!$data instanceof User) { |
145 | 145 | return; |