Skip to content
Browse files

clean up trailing spaces

  • Loading branch information...
1 parent 1e43e44 commit c97916931c095c79c02cd55e87f7dcafd1b25453 @Zeelot Zeelot committed
Showing with 19 additions and 19 deletions.
  1. +19 −19 classes/kohana/http/header.php
View
38 classes/kohana/http/header.php
@@ -104,7 +104,7 @@ public static function parse_accept_header($accepts = NULL)
*
* @link http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.2
* @param string $charset charset string to parse
- * @return array
+ * @return array
* @since 3.2.0
*/
public static function parse_charset_header($charset = NULL)
@@ -123,7 +123,7 @@ public static function parse_charset_header($charset = NULL)
*
* @link http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.3
* @param string $encoding charset string to parse
- * @return array
+ * @return array
* @since 3.2.0
*/
public static function parse_encoding_header($encoding = NULL)
@@ -149,7 +149,7 @@ public static function parse_encoding_header($encoding = NULL)
*
* @link http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4
* @param string $language charset string to parse
- * @return array
+ * @return array
* @since 3.2.0
*/
public static function parse_language_header($language = NULL)
@@ -427,7 +427,7 @@ public function exchangeArray($input)
/**
* Parses a HTTP Message header line and applies it to this HTTP_Header
- *
+ *
* $header = $response->headers();
* $header->parse_header_string(NULL, 'content-type: application/json');
*
@@ -456,13 +456,13 @@ public function parse_header_string($resource, $header_line)
* request `Accept:` header. If the `$explicit` argument is `TRUE`,
* only precise matches will be returned, excluding all wildcard (`*`)
* directives.
- *
+ *
* // Accept: application/xml; application/json; q=.5; text/html; q=.2, text/*
* // Accept quality for application/json
- *
+ *
* // $quality = 0.5
* $quality = $request->headers()->accepts_at_quality('application/json');
- *
+ *
* // $quality_explicit = FALSE
* $quality_explicit = $request->headers()->accepts_at_quality('text/plain', TRUE);
*
@@ -538,7 +538,7 @@ public function accepts_at_quality($type, $explicit = FALSE)
* Returns the preferred response content type based on the accept header
* quality settings. If items have the same quality value, the first item
* found in the array supplied as `$types` will be returned.
- *
+ *
* // Get the preferred acceptable content type
* // Accept: text/html, application/json; q=.8, text/*
* $result = $header->preferred_accept(array(
@@ -546,12 +546,12 @@ public function accepts_at_quality($type, $explicit = FALSE)
* 'text/rtf',
* 'application/json'
* )); // $result = 'application/json'
- *
+ *
* $result = $header->preferred_accept(array(
* 'text/rtf',
* 'application/xml'
* ), TRUE); // $result = FALSE (none matched explicitly)
- *
+ *
*
* @param array $types the content types to examine
* @param boolean $explicit only allow explicit references, no wildcards
@@ -581,7 +581,7 @@ public function preferred_accept(array $types, $explicit = FALSE)
* Returns the quality of the supplied `$charset` argument. This method
* will automatically parse the `Accept-Charset` header if present and
* return the associated resolved quality value.
- *
+ *
* // Accept-Charset: utf-8, utf-16; q=.8, iso-8859-1; q=.5
* $quality = $header->accepts_charset_at_quality('utf-8');
* // $quality = (float) 1
@@ -626,7 +626,7 @@ public function accepts_charset_at_quality($charset)
/**
* Returns the preferred charset from the supplied array `$charsets` based
* on the `Accept-Charset` header directive.
- *
+ *
* // Accept-Charset: utf-8, utf-16; q=.8, iso-8859-1; q=.5
* $charset = $header->preferred_charset(array(
* 'utf-10', 'ascii', 'utf-16', 'utf-8'
@@ -660,7 +660,7 @@ public function preferred_charset(array $charsets)
* is usually compression such as `gzip`, but could be some other
* message encoding algorithm. This method allows explicit checks to be
* done ignoring wildcards.
- *
+ *
* // Accept-Encoding: compress, gzip, *; q=.5
* $encoding = $header->accepts_encoding_at_quality('gzip');
* // $encoding = (float) 1.0s
@@ -713,7 +713,7 @@ public function accepts_encoding_at_quality($encoding, $explicit = FALSE)
* Returns the preferred message encoding type based on quality, and can
* optionally ignore wildcard references. If two or more encodings have the
* same quality, the first listed in `$encodings` will be returned.
- *
+ *
* // Accept-Encoding: compress, gzip, *; q.5
* $encoding = $header->preferred_encoding(array(
* 'gzip', 'bzip', 'blowfish'
@@ -748,14 +748,14 @@ public function preferred_encoding(array $encodings, $explicit = FALSE)
* Returns the quality of `$language` supplied, optionally ignoring
* wildcards if `$explicit` is set to a non-`FALSE` value. If the quality
* is not found, `0.0` is returned.
- *
+ *
* // Accept-Language: en-us, en-gb; q=.7, en; q=.5
* $lang = $header->accepts_language_at_quality('en-gb');
* // $lang = (float) 0.7
- *
+ *
* $lang2 = $header->accepts_language_at_quality('en-au');
* // $lang2 = (float) 0.5
- *
+ *
* $lang3 = $header->accepts_language_at_quality('en-au', TRUE);
* // $lang3 = (float) 0.0
*
@@ -813,7 +813,7 @@ public function accepts_language_at_quality($language, $explicit = FALSE)
/**
* Returns the preferred language from the supplied array `$languages` based
* on the `Accept-Language` header directive.
- *
+ *
* // Accept-Language: en-us, en-gb; q=.7, en; q=.5
* $lang = $header->preferred_language(array(
* 'en-gb', 'en-au', 'fr', 'es'
@@ -847,7 +847,7 @@ public function preferred_language(array $languages, $explicit = FALSE)
* Sends headers to the php processor, or supplied `$callback` argument.
* This method formats the headers correctly for output, re-instating their
* capitalization for transmission.
- *
+ *
* [!!] if you supply a custom header handler via `$callback`, it is
* recommended that `$response` is returned
*

0 comments on commit c979169

Please sign in to comment.
Something went wrong with that request. Please try again.