@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | ], |
170 | 170 | ]); |
171 | 171 | |
172 | - $builder->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event): void { |
|
172 | + $builder->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event): void { |
|
173 | 173 | $form = $event->getForm(); |
174 | 174 | $attachment = $form->getData(); |
175 | 175 | |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | //Check the secure file checkbox, if file is in securefile location |
188 | 188 | $builder->get('secureFile')->addEventListener( |
189 | 189 | FormEvents::PRE_SET_DATA, |
190 | - static function (FormEvent $event): void { |
|
190 | + static function(FormEvent $event): void { |
|
191 | 191 | $attachment = $event->getForm()->getParent()->getData(); |
192 | 192 | if ($attachment instanceof Attachment) { |
193 | 193 | $event->setData($attachment->isSecure()); |
@@ -173,7 +173,7 @@ |
||
173 | 173 | ->add('theme', ChoiceType::class, [ |
174 | 174 | 'required' => false, |
175 | 175 | 'choices' => User::AVAILABLE_THEMES, |
176 | - 'choice_label' => static function ($entity, $key, $value) { |
|
176 | + 'choice_label' => static function($entity, $key, $value) { |
|
177 | 177 | return $value; |
178 | 178 | }, |
179 | 179 | 'attr' => [ |