Przeglądaj źródła

[Form] fixed CS

Fabien Potencier 14 lat temu
rodzic
commit
2ee0c284bc
1 zmienionych plików z 2 dodań i 14 usunięć
  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);
     }
 
     /**