Passed
Push — master ( f9dfb3...04c6d5 )
by Jan
06:08
created
src/Form/UserSettingsType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.