[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(
|
||||
'value' => $choice,
|
||||
));
|
||||
} else {
|
||||
}
|
||||
|
||||
return new RadioField($choice, array(
|
||||
'value' => $choice,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
|
@ -836,9 +836,9 @@ class Form extends Field implements \IteratorAggregate, FormInterface
|
||||
}
|
||||
|
||||
return $length > $max;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -95,9 +95,9 @@ class HybridField extends Form
|
||||
{
|
||||
if ($this->mode === self::FORM) {
|
||||
return parent::getDisplayedData();
|
||||
} else {
|
||||
return Field::getDisplayedData();
|
||||
}
|
||||
|
||||
return Field::getDisplayedData();
|
||||
}
|
||||
|
||||
/**
|
||||
@ -131,8 +131,8 @@ class HybridField extends Form
|
||||
{
|
||||
if ($this->mode === self::FORM) {
|
||||
return parent::isEmpty();
|
||||
} else {
|
||||
}
|
||||
|
||||
return Field::isEmpty();
|
||||
}
|
||||
}
|
||||
}
|
@ -246,9 +246,9 @@ class PropertyPath implements \IteratorAggregate
|
||||
|
||||
if ($currentIndex < $this->length) {
|
||||
return $this->readPropertyPath($value, $currentIndex);
|
||||
} else {
|
||||
return $value;
|
||||
}
|
||||
|
||||
return $value;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user