Completed
Pull Request — master (#129)
by jelmer
03:34
created
src/SumoCoders/FrameworkCoreBundle/Form/Type/ImageType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
         $builder
28 28
             ->addEventListener(
29 29
                 FormEvents::PRE_SET_DATA,
30
-                function (FormEvent $event) use ($options) {
30
+                function(FormEvent $event) use ($options) {
31 31
                     $event->getForm()->add(
32 32
                         'file',
33 33
                         SymfonyFileType::class,
@@ -43,10 +43,10 @@  discard block
 block discarded – undo
43 43
             )
44 44
             ->addModelTransformer(
45 45
                 new CallbackTransformer(
46
-                    function (AbstractImage $image = null) {
46
+                    function(AbstractImage $image = null) {
47 47
                         return $image;
48 48
                     },
49
-                    function (AbstractImage $image = null) use ($options) {
49
+                    function(AbstractImage $image = null) use ($options) {
50 50
                         if ($image === null) {
51 51
                             $imageClass = $options['image_class'];
52 52
 
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
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
         $builder
28 28
             ->addEventListener(
29 29
                 FormEvents::PRE_SET_DATA,
30
-                function (FormEvent $event) use ($options) {
30
+                function(FormEvent $event) use ($options) {
31 31
                     $event->getForm()->add(
32 32
                         'file',
33 33
                         SymfonyFileType::class,
@@ -43,10 +43,10 @@  discard block
 block discarded – undo
43 43
             )
44 44
             ->addModelTransformer(
45 45
                 new CallbackTransformer(
46
-                    function (AbstractFile $file = null) {
46
+                    function(AbstractFile $file = null) {
47 47
                         return $file;
48 48
                     },
49
-                    function (AbstractFile $file = null) use ($options) {
49
+                    function(AbstractFile $file = null) use ($options) {
50 50
                         if ($file === null) {
51 51
                             $fileClass = $options['file_class'];
52 52
 
Please login to merge, or discard this patch.