Ver Fonte

Zend_View_Helper: headTitle helper minor code readability improvement. Closes [ZF-11013].

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@23722 44c647ce-9c0f-0410-b52a-842ac1e357ba
alexander há 15 anos atrás
pai
commit
7b1b2ad498
1 ficheiros alterados com 4 adições e 4 exclusões
  1. 4 4
      library/Zend/View/Helper/HeadTitle.php

+ 4 - 4
library/Zend/View/Helper/HeadTitle.php

@@ -69,10 +69,10 @@ class Zend_View_Helper_HeadTitle extends Zend_View_Helper_Placeholder_Container_
      */
     public function headTitle($title = null, $setType = null)
     {
-        if ($setType === null && $this->getDefaultAttachOrder() === null) {
-            $setType = Zend_View_Helper_Placeholder_Container_Abstract::APPEND;
-        } elseif ($setType === null && $this->getDefaultAttachOrder() !== null) {
-            $setType = $this->getDefaultAttachOrder();
+        if (null === $setType) {
+            $setType = (null === $this->getDefaultAttachOrder())
+                     ? Zend_View_Helper_Placeholder_Container_Abstract::APPEND
+                     : $this->getDefaultAttachOrder();
         }
         $title = (string) $title;
         if ($title !== '') {