Passed
Push — master ( f0d0a7...1b0620 )
by Jan
10:32
created
src/Form/AttachmentFormType.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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());
Please login to merge, or discard this patch.