Completed
Pull Request — master (#14)
by Benoit
02:27
created
Form/Type/EnumType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
             ->setDefault('choices_as_values', true)
45 45
             ->setAllowedValues(
46 46
                 'enum',
47
-                function ($name) {
47
+                function($name) {
48 48
                     return $this->enumRegistry->has($name);
49 49
                 }
50 50
             )
@@ -52,8 +52,8 @@  discard block
 block discarded – undo
52 52
             ->setDefault('enum_translation_domain', 'messages')
53 53
             ->setDefault(
54 54
                 'choices',
55
-                function (Options $options) {
56
-                    $choices = array_map(function ($choice) use ($options) {
55
+                function(Options $options) {
56
+                    $choices = array_map(function($choice) use ($options) {
57 57
                         return $this->translator->trans(
58 58
                             $choice,
59 59
                             $options['enum_translation_parameters'],
Please login to merge, or discard this patch.