소스 검색

[Form] fixed CS

Fabien Potencier 14 년 전
부모
커밋
2ee0c284bc
1개의 변경된 파일2개의 추가작업 그리고 14개의 파일을 삭제
  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);
     }
 
     /**