@@ -62,7 +62,6 @@ |
||
| 62 | 62 | /** |
| 63 | 63 | * Set the URL of the request |
| 64 | 64 | * |
| 65 | - * @param string $url|Url Full URL to set including query string |
|
| 66 | 65 | * |
| 67 | 66 | * @return self |
| 68 | 67 | */ |
@@ -190,7 +190,7 @@ discard block |
||
| 190 | 190 | /** |
| 191 | 191 | * Set the response entity body |
| 192 | 192 | * |
| 193 | - * @param EntityBodyInterface|string $body Body to set |
|
| 193 | + * @param string $body Body to set |
|
| 194 | 194 | * |
| 195 | 195 | * @return self |
| 196 | 196 | */ |
@@ -296,7 +296,7 @@ discard block |
||
| 296 | 296 | /** |
| 297 | 297 | * Get the response status code |
| 298 | 298 | * |
| 299 | - * @return integer |
|
| 299 | + * @return string |
|
| 300 | 300 | */ |
| 301 | 301 | public function getStatusCode() |
| 302 | 302 | { |
@@ -377,7 +377,7 @@ discard block |
||
| 377 | 377 | /** |
| 378 | 378 | * Get the Age HTTP header |
| 379 | 379 | * |
| 380 | - * @return integer|null Returns the age the object has been in a proxy cache in seconds. |
|
| 380 | + * @return string Returns the age the object has been in a proxy cache in seconds. |
|
| 381 | 381 | */ |
| 382 | 382 | public function getAge() |
| 383 | 383 | { |
@@ -583,7 +583,7 @@ discard block |
||
| 583 | 583 | /** |
| 584 | 584 | * Get the Pragma HTTP header |
| 585 | 585 | * |
| 586 | - * @return Header|null Returns the implementation-specific headers that may have various effects anywhere along |
|
| 586 | + * @return string Returns the implementation-specific headers that may have various effects anywhere along |
|
| 587 | 587 | * the request-response chain. |
| 588 | 588 | */ |
| 589 | 589 | public function getPragma() |
@@ -604,7 +604,7 @@ discard block |
||
| 604 | 604 | /** |
| 605 | 605 | * Get the Retry-After HTTP header |
| 606 | 606 | * |
| 607 | - * @return int|null If an entity is temporarily unavailable, this instructs the client to try again after a |
|
| 607 | + * @return string If an entity is temporarily unavailable, this instructs the client to try again after a |
|
| 608 | 608 | * specified period of time. |
| 609 | 609 | */ |
| 610 | 610 | public function getRetryAfter() |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | * @param string $password Password of the URL |
| 117 | 117 | * @param int $port Port of the URL |
| 118 | 118 | * @param string $path Path of the URL |
| 119 | - * @param QueryString|array|string $query Query string of the URL |
|
| 119 | + * @param QueryString $query Query string of the URL |
|
| 120 | 120 | * @param string $fragment Fragment of the URL |
| 121 | 121 | */ |
| 122 | 122 | public function __construct($scheme, $host, $username = null, $password = null, $port = null, $path = null, QueryString $query = null, $fragment = null) |
@@ -543,6 +543,9 @@ discard block |
||
| 543 | 543 | return $this; |
| 544 | 544 | } |
| 545 | 545 | |
| 546 | + /** |
|
| 547 | + * @param boolean $strictRfc386 |
|
| 548 | + */ |
|
| 546 | 549 | private function addQuery(QueryString $new, $strictRfc386) |
| 547 | 550 | { |
| 548 | 551 | if (!$strictRfc386) { |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | protected $defaultTtl; |
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | - * @param mixed $cache Cache used to store cache data |
|
| 28 | + * @param CacheAdapterInterface $cache Cache used to store cache data |
|
| 29 | 29 | * @param string $keyPrefix Provide an optional key prefix to prefix on all cache keys |
| 30 | 30 | * @param int $defaultTtl Default cache TTL |
| 31 | 31 | */ |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | /** |
| 25 | 25 | * Gets an array of invalid cookie characters |
| 26 | 26 | * |
| 27 | - * @return array |
|
| 27 | + * @return string |
|
| 28 | 28 | */ |
| 29 | 29 | protected static function getInvalidCharacters() |
| 30 | 30 | { |
@@ -225,7 +225,7 @@ discard block |
||
| 225 | 225 | /** |
| 226 | 226 | * Set the cookie version |
| 227 | 227 | * |
| 228 | - * @param string|int $version Version to set |
|
| 228 | + * @param integer $version Version to set |
|
| 229 | 229 | * |
| 230 | 230 | * @return Cookie |
| 231 | 231 | */ |
@@ -335,7 +335,7 @@ discard block |
||
| 335 | 335 | /** |
| 336 | 336 | * Set a list of acceptable ports this cookie can be used with |
| 337 | 337 | * |
| 338 | - * @param array $ports Array of acceptable ports |
|
| 338 | + * @param integer[] $ports Array of acceptable ports |
|
| 339 | 339 | * |
| 340 | 340 | * @return Cookie |
| 341 | 341 | */ |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | * Request before-send event handler |
| 70 | 70 | * |
| 71 | 71 | * @param Event $event Event received |
| 72 | - * @return array |
|
| 72 | + * @return Collection |
|
| 73 | 73 | * @throws \InvalidArgumentException |
| 74 | 74 | */ |
| 75 | 75 | public function onRequestBeforeSend(Event $event) |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | /** |
| 106 | 106 | * Builds the Authorization header for a request |
| 107 | 107 | * |
| 108 | - * @param array $authorizationParams Associative array of authorization parameters |
|
| 108 | + * @param Collection $authorizationParams Associative array of authorization parameters |
|
| 109 | 109 | * |
| 110 | 110 | * @return string |
| 111 | 111 | */ |
@@ -168,8 +168,8 @@ discard block |
||
| 168 | 168 | /** |
| 169 | 169 | * Get the oauth parameters as named by the oauth spec |
| 170 | 170 | * |
| 171 | - * @param $timestamp |
|
| 172 | - * @param $nonce |
|
| 171 | + * @param integer $timestamp |
|
| 172 | + * @param string $nonce |
|
| 173 | 173 | * @return Collection |
| 174 | 174 | */ |
| 175 | 175 | protected function getOauthParams($timestamp, $nonce) |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | * overwritten e.g. the Flickr API incorrectly adds the post fields when the Content-Type |
| 238 | 238 | * is 'application/x-www-form-urlencoded' |
| 239 | 239 | * |
| 240 | - * @param $request |
|
| 240 | + * @param RequestInterface $request |
|
| 241 | 241 | * @return bool Whether the post fields should be signed or not |
| 242 | 242 | */ |
| 243 | 243 | public function shouldPostFieldsBeSigned($request) |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | * @param string $method Name of the command object to instantiate |
| 69 | 69 | * @param array $args Arguments to pass to the command |
| 70 | 70 | * |
| 71 | - * @return mixed Returns the result of the command |
|
| 71 | + * @return \Guzzle\Http\Message\Response Returns the result of the command |
|
| 72 | 72 | * @throws BadMethodCallException when a command is not found |
| 73 | 73 | */ |
| 74 | 74 | public function __call($method, $args) |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | /** |
| 182 | 182 | * Get the inflector used with the client |
| 183 | 183 | * |
| 184 | - * @return self |
|
| 184 | + * @return InflectorInterface |
|
| 185 | 185 | */ |
| 186 | 186 | public function getInflector() |
| 187 | 187 | { |
@@ -79,7 +79,7 @@ |
||
| 79 | 79 | /** |
| 80 | 80 | * Check if the chain contains a specific command factory |
| 81 | 81 | * |
| 82 | - * @param FactoryInterface|string $factory Factory to check |
|
| 82 | + * @param string $factory Factory to check |
|
| 83 | 83 | * |
| 84 | 84 | * @return bool |
| 85 | 85 | */ |
@@ -207,7 +207,7 @@ |
||
| 207 | 207 | * |
| 208 | 208 | * @param \XMLWriter $xmlWriter |
| 209 | 209 | * |
| 210 | - * @return \string the writer resource |
|
| 210 | + * @return string the writer resource |
|
| 211 | 211 | */ |
| 212 | 212 | protected function finishDocument($xmlWriter) |
| 213 | 213 | { |