Robert Gruendler 13 år sedan
förälder
incheckning
5371787c00
1 ändrade filer med 2 tillägg och 3 borttagningar
  1. 2 3
      Form/Type/ModelType.php

+ 2 - 3
Form/Type/ModelType.php

@@ -53,12 +53,11 @@ class ModelType extends AbstractType
             'parent'            => 'choice',
             'parent'            => 'choice',
             'preferred_choices' => array(),
             'preferred_choices' => array(),
             'choice_list'       => function (Options $options, $previousValue) {
             'choice_list'       => function (Options $options, $previousValue) {
-            
-                if ($previousValue instanceof ChoiceListInterface 
+                if ($previousValue instanceof ChoiceListInterface
                         && count($choices = $previousValue->getChoices())) {
                         && count($choices = $previousValue->getChoices())) {
                     return $choices;
                     return $choices;
                 }
                 }
-            
+
                 return new ModelChoiceList(
                 return new ModelChoiceList(
                     $options['model_manager'],
                     $options['model_manager'],
                     $options['class'],
                     $options['class'],