Skip to content

Commit

Permalink
fixed CS
Browse files Browse the repository at this point in the history
  • Loading branch information
pulse00 committed Apr 13, 2012
1 parent cd23b49 commit 5371787
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Form/Type/ModelType.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,11 @@ public function getDefaultOptions()
'parent' => 'choice',
'preferred_choices' => array(),
'choice_list' => function (Options $options, $previousValue) {

if ($previousValue instanceof ChoiceListInterface
if ($previousValue instanceof ChoiceListInterface
&& count($choices = $previousValue->getChoices())) {
return $choices;
}

return new ModelChoiceList(
$options['model_manager'],
$options['class'],
Expand Down

0 comments on commit 5371787

Please sign in to comment.