Refactoring useless return line

This commit is contained in:
Marc Ducobu
2014-11-13 21:29:01 +01:00
parent d0a04279d3
commit f02d9ff098
2 changed files with 0 additions and 4 deletions

View File

@@ -86,13 +86,11 @@ class CustomFieldChoice implements CustomFieldInterface
//if allow_other = true
if ($customField->getOptions()[self::ALLOW_OTHER] === 1) {
$builder->add(
$builder->create($customField->getSlug(), new ChoiceWithOtherType(), $options)
->addModelTransformer(new CustomFieldDataTransformer($this, $customField)));
} else { //if allow_other = false
//we add the 'expanded' to options
$options['expanded'] = $customField->getOptions()[self::EXPANDED];