@@ -279,7 +279,7 @@ discard block |
||
| 279 | 279 | /** |
| 280 | 280 | * Set the type(s) of the parameter |
| 281 | 281 | * |
| 282 | - * @param string|array $type Type of parameter or array of simple types used in a union |
|
| 282 | + * @param string $type Type of parameter or array of simple types used in a union |
|
| 283 | 283 | * |
| 284 | 284 | * @return self |
| 285 | 285 | */ |
@@ -582,7 +582,7 @@ discard block |
||
| 582 | 582 | * Set the extra data properties of the parameter or set a specific extra property |
| 583 | 583 | * |
| 584 | 584 | * @param string|array|null $nameOrData The name of a specific extra to set or an array of extras to set |
| 585 | - * @param mixed|null $data When setting a specific extra property, specify the data to set for it |
|
| 585 | + * @param string $data When setting a specific extra property, specify the data to set for it |
|
| 586 | 586 | * |
| 587 | 587 | * @return self |
| 588 | 588 | */ |
@@ -600,7 +600,7 @@ discard block |
||
| 600 | 600 | /** |
| 601 | 601 | * Get whether or not the default value can be changed |
| 602 | 602 | * |
| 603 | - * @return mixed|null |
|
| 603 | + * @return boolean |
|
| 604 | 604 | */ |
| 605 | 605 | public function getStatic() |
| 606 | 606 | { |
@@ -676,7 +676,7 @@ discard block |
||
| 676 | 676 | /** |
| 677 | 677 | * Get the parent object (an {@see OperationInterface} or {@see Parameter} |
| 678 | 678 | * |
| 679 | - * @return OperationInterface|Parameter|null |
|
| 679 | + * @return Operation |
|
| 680 | 680 | */ |
| 681 | 681 | public function getParent() |
| 682 | 682 | { |
@@ -864,7 +864,7 @@ discard block |
||
| 864 | 864 | /** |
| 865 | 865 | * Set the enum of strings that are valid for the parameter |
| 866 | 866 | * |
| 867 | - * @param array|null $enum Array of strings or null |
|
| 867 | + * @param string[] $enum Array of strings or null |
|
| 868 | 868 | * |
| 869 | 869 | * @return self |
| 870 | 870 | */ |
@@ -260,7 +260,7 @@ |
||
| 260 | 260 | * @param string $type Parameter type |
| 261 | 261 | * @param mixed $value Value to determine the type |
| 262 | 262 | * |
| 263 | - * @return string|bool Returns the matching type on |
|
| 263 | + * @return string|false Returns the matching type on |
|
| 264 | 264 | */ |
| 265 | 265 | protected function determineType($type, $value) |
| 266 | 266 | { |
@@ -110,7 +110,7 @@ |
||
| 110 | 110 | * Set an option on the iterator |
| 111 | 111 | * |
| 112 | 112 | * @param string $key Key of the option to set |
| 113 | - * @param mixed $value Value to set for the option |
|
| 113 | + * @param string $value Value to set for the option |
|
| 114 | 114 | * |
| 115 | 115 | * @return ResourceIterator |
| 116 | 116 | */ |
@@ -90,7 +90,7 @@ |
||
| 90 | 90 | * @param string $algo Hash algorithm (e.g. md5, crc32, etc) |
| 91 | 91 | * @param bool $rawOutput Whether or not to use raw output |
| 92 | 92 | * |
| 93 | - * @return bool|string Returns false on failure or a hash string on success |
|
| 93 | + * @return false|string Returns false on failure or a hash string on success |
|
| 94 | 94 | */ |
| 95 | 95 | public static function getHash(StreamInterface $stream, $algo, $rawOutput = false) |
| 96 | 96 | { |
@@ -9,11 +9,17 @@ |
||
| 9 | 9 | */ |
| 10 | 10 | class BatchBuilderTest extends \Guzzle\Tests\GuzzleTestCase |
| 11 | 11 | { |
| 12 | + /** |
|
| 13 | + * @return \Guzzle\Batch\BatchTransferInterface |
|
| 14 | + */ |
|
| 12 | 15 | private function getMockTransfer() |
| 13 | 16 | { |
| 14 | 17 | return $this->getMock('Guzzle\Batch\BatchTransferInterface'); |
| 15 | 18 | } |
| 16 | 19 | |
| 20 | + /** |
|
| 21 | + * @return \Guzzle\Batch\BatchDivisorInterface |
|
| 22 | + */ |
|
| 17 | 23 | private function getMockDivisor() |
| 18 | 24 | { |
| 19 | 25 | return $this->getMock('Guzzle\Batch\BatchDivisorInterface'); |
@@ -474,6 +474,7 @@ |
||
| 474 | 474 | } |
| 475 | 475 | |
| 476 | 476 | /** |
| 477 | + * @param integer $code |
|
| 477 | 478 | * @return Response |
| 478 | 479 | */ |
| 479 | 480 | private function getResponse($code, array $headers = null, EntityBody $body = null) |
@@ -22,6 +22,9 @@ |
||
| 22 | 22 | */ |
| 23 | 23 | class DefaultRevalidationTest extends \Guzzle\Tests\GuzzleTestCase |
| 24 | 24 | { |
| 25 | + /** |
|
| 26 | + * @param string $time |
|
| 27 | + */ |
|
| 25 | 28 | protected function getHttpDate($time) |
| 26 | 29 | { |
| 27 | 30 | return gmdate(ClientInterface::HTTP_DATE, strtotime($time)); |
@@ -71,6 +71,9 @@ discard block |
||
| 71 | 71 | } |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | + /** |
|
| 75 | + * @param RequestException $error |
|
| 76 | + */ |
|
| 74 | 77 | private function invokeStats( |
| 75 | 78 | array $options, |
| 76 | 79 | RequestInterface $request, |
@@ -90,6 +93,10 @@ discard block |
||
| 90 | 93 | } |
| 91 | 94 | } |
| 92 | 95 | |
| 96 | + /** |
|
| 97 | + * @param resource $stream |
|
| 98 | + * @param double|null $startTime |
|
| 99 | + */ |
|
| 93 | 100 | private function createResponse( |
| 94 | 101 | RequestInterface $request, |
| 95 | 102 | array $options, |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | /** |
| 75 | 75 | * @param RequestInterface $request |
| 76 | 76 | * @param array $options |
| 77 | - * @param ResponseInterface|PromiseInterface $response |
|
| 77 | + * @param ResponseInterface $response |
|
| 78 | 78 | * |
| 79 | 79 | * @return ResponseInterface|PromiseInterface |
| 80 | 80 | */ |
@@ -115,6 +115,9 @@ discard block |
||
| 115 | 115 | return $promise; |
| 116 | 116 | } |
| 117 | 117 | |
| 118 | + /** |
|
| 119 | + * @param string $uri |
|
| 120 | + */ |
|
| 118 | 121 | private function withTracking(PromiseInterface $promise, $uri) |
| 119 | 122 | { |
| 120 | 123 | return $promise->then( |