@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | $builder |
32 | 32 | ->addEventListener( |
33 | 33 | FormEvents::PRE_SET_DATA, |
34 | - function (FormEvent $event) use ($options) { |
|
34 | + function(FormEvent $event) use ($options) { |
|
35 | 35 | $event->getForm()->add( |
36 | 36 | 'file', |
37 | 37 | SymfonyFileType::class, |
@@ -61,10 +61,10 @@ discard block |
||
61 | 61 | ) |
62 | 62 | ->addModelTransformer( |
63 | 63 | new CallbackTransformer( |
64 | - function (AbstractImage $image = null) { |
|
64 | + function(AbstractImage $image = null) { |
|
65 | 65 | return $image; |
66 | 66 | }, |
67 | - function (AbstractImage $image = null) use ($options) { |
|
67 | + function(AbstractImage $image = null) use ($options) { |
|
68 | 68 | if ($image === null) { |
69 | 69 | $imageClass = $options['image_class']; |
70 | 70 | if ($this->removeField !== null && $this->removeField->getData()) { |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | $builder |
32 | 32 | ->addEventListener( |
33 | 33 | FormEvents::PRE_SET_DATA, |
34 | - function (FormEvent $event) use ($options) { |
|
34 | + function(FormEvent $event) use ($options) { |
|
35 | 35 | $event->getForm()->add( |
36 | 36 | 'file', |
37 | 37 | SymfonyFileType::class, |
@@ -61,10 +61,10 @@ discard block |
||
61 | 61 | ) |
62 | 62 | ->addModelTransformer( |
63 | 63 | new CallbackTransformer( |
64 | - function (AbstractFile $file = null) { |
|
64 | + function(AbstractFile $file = null) { |
|
65 | 65 | return $file; |
66 | 66 | }, |
67 | - function (AbstractFile $file = null) use ($options) { |
|
67 | + function(AbstractFile $file = null) use ($options) { |
|
68 | 68 | if ($file === null) { |
69 | 69 | $fileClass = $options['file_class']; |
70 | 70 | if ($this->removeField !== null && $this->removeField->getData()) { |