@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | 'required' => false, |
116 | 116 | 'label' => 'attachment.edit.secure_file', |
117 | 117 | 'mapped' => false, |
118 | - 'disabled' => ! $this->security->isGranted('@parts_attachments.show_private'), |
|
118 | + 'disabled' => !$this->security->isGranted('@parts_attachments.show_private'), |
|
119 | 119 | 'attr' => [ |
120 | 120 | 'class' => 'form-control-sm', |
121 | 121 | ], |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | 'required' => false, |
144 | 144 | 'label' => 'attachment.edit.download_url', |
145 | 145 | 'mapped' => false, |
146 | - 'disabled' => ! $this->allow_attachments_download, |
|
146 | + 'disabled' => !$this->allow_attachments_download, |
|
147 | 147 | 'attr' => [ |
148 | 148 | 'class' => 'form-control-sm', |
149 | 149 | ], |
@@ -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 | |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | //Check the secure file checkbox, if file is in securefile location |
189 | 189 | $builder->get('secureFile')->addEventListener( |
190 | 190 | FormEvents::PRE_SET_DATA, |
191 | - function (FormEvent $event): void { |
|
191 | + function(FormEvent $event): void { |
|
192 | 192 | $attachment = $event->getForm()->getParent()->getData(); |
193 | 193 | if ($attachment instanceof Attachment) { |
194 | 194 | $event->setData($attachment->isSecure()); |