mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 05:44:24 +00:00
Refactoring useless return line
This commit is contained in:
parent
d0a04279d3
commit
f02d9ff098
@ -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];
|
||||
|
||||
|
@ -13,8 +13,6 @@ use Symfony\Component\OptionsResolver\OptionsResolverInterface;
|
||||
*/
|
||||
class ChoiceWithOtherType extends AbstractType
|
||||
{
|
||||
|
||||
|
||||
/* (non-PHPdoc)
|
||||
* @see \Symfony\Component\Form\AbstractType::buildForm()
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user