From f02d9ff0986b3a0d9af74136c49cef58ebb89b66 Mon Sep 17 00:00:00 2001 From: Marc Ducobu Date: Thu, 13 Nov 2014 21:29:01 +0100 Subject: [PATCH] Refactoring useless return line --- CustomFields/CustomFieldChoice.php | 2 -- Form/Type/ChoiceWithOtherType.php | 2 -- 2 files changed, 4 deletions(-) diff --git a/CustomFields/CustomFieldChoice.php b/CustomFields/CustomFieldChoice.php index 2767d8620..8a0f809e3 100644 --- a/CustomFields/CustomFieldChoice.php +++ b/CustomFields/CustomFieldChoice.php @@ -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]; diff --git a/Form/Type/ChoiceWithOtherType.php b/Form/Type/ChoiceWithOtherType.php index 65e048129..541f9cadb 100644 --- a/Form/Type/ChoiceWithOtherType.php +++ b/Form/Type/ChoiceWithOtherType.php @@ -13,8 +13,6 @@ use Symfony\Component\OptionsResolver\OptionsResolverInterface; */ class ChoiceWithOtherType extends AbstractType { - - /* (non-PHPdoc) * @see \Symfony\Component\Form\AbstractType::buildForm() */