Explorar el Código

[Form] fixed CS

Fabien Potencier hace 14 años
padre
commit
2ee0c284bc
Se han modificado 1 ficheros con 2 adiciones y 14 borrados
  1. 2 14
      src/Symfony/Component/Form/FormBuilder.php

+ 2 - 14
src/Symfony/Component/Form/FormBuilder.php

@@ -562,22 +562,10 @@ class FormBuilder
         }
 
         if (null !== $type) {
-            $builder = $this->getFormFactory()->createNamedBuilder(
-                $type,
-                $name,
-                null,
-                $options
-            );
-        } else {
-            $builder = $this->getFormFactory()->createBuilderForProperty(
-                $this->dataClass,
-                $name,
-                null,
-                $options
-            );
+            return $this->getFormFactory()->createNamedBuilder($type, $name, null, $options);
         }
 
-        return $builder;
+        return $this->getFormFactory()->createBuilderForProperty($this->dataClass, $name, null, $options);
     }
 
     /**