@@ -20,7 +20,7 @@ |
||
| 20 | 20 | { |
| 21 | 21 | /** |
| 22 | 22 | * Send a HTTP request with a specific method, GET, POST, etc. |
| 23 | - * @param null $method The method to use, GET, POST, etc. |
|
| 23 | + * @param string $method The method to use, GET, POST, etc. |
|
| 24 | 24 | * @param null $url The URL to request |
| 25 | 25 | * @param null $query The query string |
| 26 | 26 | * @param array $options Any of the HTTP stream context options, e.g. extra headers. |
@@ -34,6 +34,7 @@ discard block |
||
| 34 | 34 | /** |
| 35 | 35 | * @param string $url The URL to parse, the query part will remain a string. |
| 36 | 36 | * @param QueryInterface queryObject Optional. An object that parses the query string. |
| 37 | + * @param Query $queryObject |
|
| 37 | 38 | */ |
| 38 | 39 | public function __construct($url, $queryObject = null) |
| 39 | 40 | { |
@@ -116,7 +117,7 @@ discard block |
||
| 116 | 117 | |
| 117 | 118 | /** |
| 118 | 119 | * @param $components |
| 119 | - * @param $validComponents |
|
| 120 | + * @param string[] $validComponents |
|
| 120 | 121 | */ |
| 121 | 122 | private function importUrlComponents($components, $validComponents) |
| 122 | 123 | { |
@@ -167,6 +167,9 @@ discard block |
||
| 167 | 167 | return $headers; |
| 168 | 168 | } |
| 169 | 169 | |
| 170 | + /** |
|
| 171 | + * @param boolean $private |
|
| 172 | + */ |
|
| 170 | 173 | private static function getCacheControlTime( $header, $private ) |
| 171 | 174 | { |
| 172 | 175 | $result = null; |
@@ -227,7 +230,7 @@ discard block |
||
| 227 | 230 | /** |
| 228 | 231 | * Return the last value sent for a specific header, uses the output of parse(). |
| 229 | 232 | * @param (mixed) $headers An array with multiple header strings or a single string. |
| 230 | - * @return array|mixed |
|
| 233 | + * @return string |
|
| 231 | 234 | */ |
| 232 | 235 | private static function getLastHeader($headers) { |
| 233 | 236 | if ( is_array($headers) ) { |