[Form] Removed useless else
This commit is contained in:
parent
66f4d8bf6d
commit
03f91ff1e0
@ -205,12 +205,12 @@ class ChoiceField extends HybridField
|
|||||||
return new CheckboxField($choice, array(
|
return new CheckboxField($choice, array(
|
||||||
'value' => $choice,
|
'value' => $choice,
|
||||||
));
|
));
|
||||||
} else {
|
}
|
||||||
|
|
||||||
return new RadioField($choice, array(
|
return new RadioField($choice, array(
|
||||||
'value' => $choice,
|
'value' => $choice,
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
|
@ -836,9 +836,9 @@ class Form extends Field implements \IteratorAggregate, FormInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $length > $max;
|
return $length > $max;
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -95,9 +95,9 @@ class HybridField extends Form
|
|||||||
{
|
{
|
||||||
if ($this->mode === self::FORM) {
|
if ($this->mode === self::FORM) {
|
||||||
return parent::getDisplayedData();
|
return parent::getDisplayedData();
|
||||||
} else {
|
|
||||||
return Field::getDisplayedData();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return Field::getDisplayedData();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -131,8 +131,8 @@ class HybridField extends Form
|
|||||||
{
|
{
|
||||||
if ($this->mode === self::FORM) {
|
if ($this->mode === self::FORM) {
|
||||||
return parent::isEmpty();
|
return parent::isEmpty();
|
||||||
} else {
|
}
|
||||||
|
|
||||||
return Field::isEmpty();
|
return Field::isEmpty();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
@ -246,9 +246,9 @@ class PropertyPath implements \IteratorAggregate
|
|||||||
|
|
||||||
if ($currentIndex < $this->length) {
|
if ($currentIndex < $this->length) {
|
||||||
return $this->readPropertyPath($value, $currentIndex);
|
return $this->readPropertyPath($value, $currentIndex);
|
||||||
} else {
|
|
||||||
return $value;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user