Issues

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

Patch is applied.