@@ -35,6 +35,9 @@ |
||
35 | 35 | '%40', '%21', '%24', '%26', '%27', '%28', '%29', '%2A', '%2B', '%2C', |
36 | 36 | '%3B', '%3D'); |
37 | 37 | |
38 | + /** |
|
39 | + * @param string $template |
|
40 | + */ |
|
38 | 41 | public function expand($template, array $variables) |
39 | 42 | { |
40 | 43 | if (false === strpos($template, '{')) { |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | * without the extension, with "_PHAR" appended, then converted to all |
301 | 301 | * caps (e.g., "/foo/guzzle.phar" gets a contant defined as GUZZLE_PHAR. |
302 | 302 | * |
303 | - * @param $dest |
|
303 | + * @param string $dest |
|
304 | 304 | * @param string $autoloaderFilename Name of the autoloader file. |
305 | 305 | * |
306 | 306 | * @return string |
@@ -375,6 +375,9 @@ discard block |
||
375 | 375 | $this->endSection(); |
376 | 376 | } |
377 | 377 | |
378 | + /** |
|
379 | + * @param string $dir |
|
380 | + */ |
|
378 | 381 | private function createDirIfNeeded($dir) |
379 | 382 | { |
380 | 383 | if (!is_dir($dir) && !mkdir($dir, 0755, true)) { |
@@ -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( |
@@ -3,7 +3,6 @@ |
||
3 | 3 | |
4 | 4 | use GuzzleHttp\Promise\PromiseInterface; |
5 | 5 | use GuzzleHttp\Promise\RejectedPromise; |
6 | -use GuzzleHttp\Psr7; |
|
7 | 6 | use Psr\Http\Message\RequestInterface; |
8 | 7 | |
9 | 8 | /** |
@@ -3,7 +3,6 @@ |
||
3 | 3 | |
4 | 4 | use GuzzleHttp\Promise\PromiseInterface; |
5 | 5 | use GuzzleHttp\Promise\RejectedPromise; |
6 | -use GuzzleHttp\Psr7; |
|
7 | 6 | use Psr\Http\Message\RequestInterface; |
8 | 7 | |
9 | 8 | /** |