mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-14 06:14:23 +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 allow_other = true
|
||||||
if ($customField->getOptions()[self::ALLOW_OTHER] === 1) {
|
if ($customField->getOptions()[self::ALLOW_OTHER] === 1) {
|
||||||
|
|
||||||
$builder->add(
|
$builder->add(
|
||||||
$builder->create($customField->getSlug(), new ChoiceWithOtherType(), $options)
|
$builder->create($customField->getSlug(), new ChoiceWithOtherType(), $options)
|
||||||
->addModelTransformer(new CustomFieldDataTransformer($this, $customField)));
|
->addModelTransformer(new CustomFieldDataTransformer($this, $customField)));
|
||||||
|
|
||||||
} else { //if allow_other = false
|
} else { //if allow_other = false
|
||||||
|
|
||||||
//we add the 'expanded' to options
|
//we add the 'expanded' to options
|
||||||
$options['expanded'] = $customField->getOptions()[self::EXPANDED];
|
$options['expanded'] = $customField->getOptions()[self::EXPANDED];
|
||||||
|
|
||||||
|
@ -13,8 +13,6 @@ use Symfony\Component\OptionsResolver\OptionsResolverInterface;
|
|||||||
*/
|
*/
|
||||||
class ChoiceWithOtherType extends AbstractType
|
class ChoiceWithOtherType extends AbstractType
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
/* (non-PHPdoc)
|
/* (non-PHPdoc)
|
||||||
* @see \Symfony\Component\Form\AbstractType::buildForm()
|
* @see \Symfony\Component\Form\AbstractType::buildForm()
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user