File tree 3 files changed +7
-5
lines changed
3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -223,15 +223,18 @@ private function createForm($item)
223
223
}
224
224
}
225
225
226
- private function handleChoiceListValues (ChoiceListInterface $ choiceList ) {
226
+ private function handleChoiceListValues (ChoiceListInterface $ choiceList )
227
+ {
227
228
$ choices = array ();
228
229
foreach (array ($ choiceList ->getPreferredViews (), $ choiceList ->getRemainingViews ()) as $ viewList ) {
229
230
$ choices = array_merge ($ choices , $ this ->handleChoiceViewsHierarchy ($ viewList ));
230
231
}
232
+
231
233
return $ choices ;
232
234
}
233
235
234
- private function handleChoiceViewsHierarchy (array $ choiceViews ) {
236
+ private function handleChoiceViewsHierarchy (array $ choiceViews )
237
+ {
235
238
$ choices = array ();
236
239
foreach ($ choiceViews as $ item ) {
237
240
if ($ item instanceof ChoiceView) {
@@ -240,6 +243,7 @@ private function handleChoiceViewsHierarchy(array $choiceViews) {
240
243
$ choices = array_merge ($ choices , $ this ->handleChoiceViewsHierarchy ($ item ));
241
244
}
242
245
}
246
+
243
247
return $ choices ;
244
248
}
245
249
}
Original file line number Diff line number Diff line change 8
8
9
9
namespace Nelmio \ApiDocBundle \Tests \Fixtures \Form ;
10
10
11
-
12
11
use Symfony \Component \Form \AbstractType ;
13
12
use Symfony \Component \Form \Extension \Core \ChoiceList \SimpleChoiceList ;
14
13
use Symfony \Component \Form \FormBuilderInterface ;
@@ -53,4 +52,3 @@ public function getName()
53
52
return '' ;
54
53
}
55
54
}
56
-
Original file line number Diff line number Diff line change @@ -148,4 +148,4 @@ test_route_private:
148
148
149
149
test_route_exclusive :
150
150
pattern : /exclusive
151
- defaults : { _controller: NelmioApiDocTestBundle:Test:exclusive }
151
+ defaults : { _controller: NelmioApiDocTestBundle:Test:exclusive }
You can’t perform that action at this time.
0 commit comments