Просмотр исходного кода

[ZF-9283]Zend_Controller_Response_Abstract contain tabs

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@21301 44c647ce-9c0f-0410-b52a-842ac1e357ba
yoshida@zend.co.jp 16 лет назад
Родитель
Сommit
e843b70407
1 измененных файлов с 35 добавлено и 35 удалено
  1. 35 35
      library/Zend/Controller/Response/Abstract.php

+ 35 - 35
library/Zend/Controller/Response/Abstract.php

@@ -184,26 +184,26 @@ abstract class Zend_Controller_Response_Abstract
         return $this;
     }
 
-	/**
-	 * Clears the specified HTTP header
-	 *
-	 * @param  string $name
-	 * @return Zend_Controller_Response_Abstract
-	 */
-	public function clearHeader($name)
-	{
-		if (! count($this->_headers)) {
-			return $this;
-		}
-
-		foreach ($this->_headers as $index => $header) {
-			if ($name == $header['name']) {
-				unset($this->_headers[$index]);
-			}
-		}
-
-		return $this;
-	}
+    /**
+     * Clears the specified HTTP header
+     *
+     * @param  string $name
+     * @return Zend_Controller_Response_Abstract
+     */
+    public function clearHeader($name)
+    {
+        if (! count($this->_headers)) {
+            return $this;
+        }
+
+        foreach ($this->_headers as $index => $header) {
+            if ($name == $header['name']) {
+                unset($this->_headers[$index]);
+            }
+        }
+
+        return $this;
+    }
 
     /**
      * Set raw HTTP header
@@ -244,23 +244,23 @@ abstract class Zend_Controller_Response_Abstract
         return $this;
     }
 
-	/**
-	 * Clears the specified raw HTTP header
-	 *
-	 * @param  string $headerRaw
-	 * @return Zend_Controller_Response_Abstract
-	 */
-	public function clearRawHeader($headerRaw)
-	{
-		if (! count($this->_headersRaw)) {
-			return $this;
-		}
+    /**
+     * Clears the specified raw HTTP header
+     *
+     * @param  string $headerRaw
+     * @return Zend_Controller_Response_Abstract
+     */
+    public function clearRawHeader($headerRaw)
+    {
+        if (! count($this->_headersRaw)) {
+            return $this;
+        }
 
-		$key = array_search($headerRaw, $this->_headersRaw);
-		unset($this->_headersRaw[$key]);
+        $key = array_search($headerRaw, $this->_headersRaw);
+        unset($this->_headersRaw[$key]);
 
-		return $this;
-	}
+        return $this;
+    }
 
     /**
      * Clear all headers, normal and raw