Skip to content

Commit fa92011

Browse files
committed
fix cs
1 parent a88e7d8 commit fa92011

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

Parser/FormTypeParser.php

+6-2
Original file line numberDiff line numberDiff line change
@@ -223,15 +223,18 @@ private function createForm($item)
223223
}
224224
}
225225

226-
private function handleChoiceListValues(ChoiceListInterface $choiceList) {
226+
private function handleChoiceListValues(ChoiceListInterface $choiceList)
227+
{
227228
$choices = array();
228229
foreach (array($choiceList->getPreferredViews(), $choiceList->getRemainingViews()) as $viewList) {
229230
$choices = array_merge($choices, $this->handleChoiceViewsHierarchy($viewList));
230231
}
232+
231233
return $choices;
232234
}
233235

234-
private function handleChoiceViewsHierarchy(array $choiceViews) {
236+
private function handleChoiceViewsHierarchy(array $choiceViews)
237+
{
235238
$choices = array();
236239
foreach ($choiceViews as $item) {
237240
if ($item instanceof ChoiceView) {
@@ -240,6 +243,7 @@ private function handleChoiceViewsHierarchy(array $choiceViews) {
240243
$choices = array_merge($choices, $this->handleChoiceViewsHierarchy($item));
241244
}
242245
}
246+
243247
return $choices;
244248
}
245249
}

Tests/Fixtures/Form/ImprovedTestType.php

-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
namespace Nelmio\ApiDocBundle\Tests\Fixtures\Form;
1010

11-
1211
use Symfony\Component\Form\AbstractType;
1312
use Symfony\Component\Form\Extension\Core\ChoiceList\SimpleChoiceList;
1413
use Symfony\Component\Form\FormBuilderInterface;
@@ -53,4 +52,3 @@ public function getName()
5352
return '';
5453
}
5554
}
56-

Tests/Fixtures/app/config/routing.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,4 +148,4 @@ test_route_private:
148148

149149
test_route_exclusive:
150150
pattern: /exclusive
151-
defaults: { _controller: NelmioApiDocTestBundle:Test:exclusive }
151+
defaults: { _controller: NelmioApiDocTestBundle:Test:exclusive }

0 commit comments

Comments
 (0)