Completed
Pull Request — master (#155)
by Tijs
06:45
created
src/SumoCoders/FrameworkCoreBundle/Form/Type/ImageType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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()) {
Please login to merge, or discard this patch.
src/SumoCoders/FrameworkCoreBundle/Form/Type/FileType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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()) {
Please login to merge, or discard this patch.