[Form] Removed useless else

This commit is contained in:
Pascal Borreli 2011-02-27 18:27:46 +01:00
parent 66f4d8bf6d
commit 03f91ff1e0
4 changed files with 12 additions and 12 deletions

View File

@ -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}

View File

@ -836,9 +836,9 @@ class Form extends Field implements \IteratorAggregate, FormInterface
} }
return $length > $max; return $length > $max;
} else {
return false;
} }
return false;
} }
/** /**

View File

@ -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();
} }
}
} }

View File

@ -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;
} }
/** /**