Completed
Push — master ( 53823c...8f6bb6 )
by
unknown
13s
created
src/SumoCoders/FrameworkCoreBundle/Form/Type/OtherChoiceType.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
             [
46 46
                 'label' => false,
47 47
                 'choice_loader' => new CallbackChoiceLoader(
48
-                    function () use ($category) : array {
48
+                    function() use ($category) : array {
49 49
                         $choices = (array) $this->repository->findBy(
50 50
                             ['category' => $category, 'locale' => $this->translator->getLocale()],
51 51
                             ['label' => 'ASC']
@@ -55,14 +55,14 @@  discard block
 block discarded – undo
55 55
                         return $choices;
56 56
                     }
57 57
                 ),
58
-                'choice_value' => function (OtherChoiceOption $choiceOption = null) : string {
58
+                'choice_value' => function(OtherChoiceOption $choiceOption = null) : string {
59 59
                     if ($choiceOption === null) {
60 60
                         return '';
61 61
                     }
62 62
 
63 63
                     return $choiceOption->getValue();
64 64
                 },
65
-                'choice_label' => function (OtherChoiceOption $choiceOption) : string {
65
+                'choice_label' => function(OtherChoiceOption $choiceOption) : string {
66 66
                     return (string) $choiceOption;
67 67
                 },
68 68
                 'placeholder' => $options['placeholder'],
@@ -81,13 +81,13 @@  discard block
 block discarded – undo
81 81
             ]
82 82
         )->addModelTransformer(
83 83
             new CallbackTransformer(
84
-                function (?OtherChoiceOption $selectedOption) : array {
84
+                function(?OtherChoiceOption $selectedOption) : array {
85 85
                     return [
86 86
                         'choices' => $selectedOption,
87 87
                         'other' => null,
88 88
                     ];
89 89
                 },
90
-                function (array $data) use ($options) : ?OtherChoiceOption {
90
+                function(array $data) use ($options) : ?OtherChoiceOption {
91 91
                     if ($data['choices'] === null) {
92 92
                         return null;
93 93
                     }
Please login to merge, or discard this patch.