ZF-11013: headTitle helper
Description
First lines of method "headTitle" at Zend_View_Helper_HeadTitle could be simplified from:
if ($setType === null && $this->getDefaultAttachOrder() === null) {
$setType = Zend_View_Helper_Placeholder_Container_Abstract::APPEND;
} elseif ($setType === null && $this->getDefaultAttachOrder() !== null) {
$setType = $this->getDefaultAttachOrder();
}
To:
if ($setType === null) {
if ($this->getDefaultAttachOrder() === null) {
$setType = Zend_View_Helper_Placeholder_Container_Abstract::APPEND;
} else {
$setType = $this->getDefaultAttachOrder();
}
}
Or even more... using ternary operator.
Comments
Posted by Alexander Veremyev (alexander) on 2011-02-18T07:27:58.000+0000
Patch is applied.