@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | * |
| 139 | 139 | * Example: http://test.com?q=1&q=2 |
| 140 | 140 | * |
| 141 | - * @return callable |
|
| 141 | + * @return \Closure |
|
| 142 | 142 | */ |
| 143 | 143 | public static function duplicateAggregator() |
| 144 | 144 | { |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | * @param bool $numericIndices Pass false to not include numeric indices |
| 157 | 157 | * when multi-values query string parameters are present. |
| 158 | 158 | * |
| 159 | - * @return callable |
|
| 159 | + * @return \Closure |
|
| 160 | 160 | */ |
| 161 | 161 | public static function phpAggregator($numericIndices = true) |
| 162 | 162 | { |
@@ -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, '{')) { |
@@ -166,6 +166,9 @@ |
||
| 166 | 166 | } |
| 167 | 167 | } |
| 168 | 168 | |
| 169 | + /** |
|
| 170 | + * @param integer $id |
|
| 171 | + */ |
|
| 169 | 172 | private function removeProcessed($id) |
| 170 | 173 | { |
| 171 | 174 | if (isset($this->handles[$id])) { |
@@ -38,6 +38,10 @@ discard block |
||
| 38 | 38 | } |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | + /** |
|
| 42 | + * @param string $url |
|
| 43 | + * @param resource $stream |
|
| 44 | + */ |
|
| 41 | 45 | private function createResponse(array $request, $url, $stream) |
| 42 | 46 | { |
| 43 | 47 | $hdrs = $this->lastHeaders; |
@@ -121,7 +125,7 @@ discard block |
||
| 121 | 125 | * @param string $url |
| 122 | 126 | * @param RingException $e |
| 123 | 127 | * |
| 124 | - * @return array |
|
| 128 | + * @return CompletedFutureArray |
|
| 125 | 129 | */ |
| 126 | 130 | private function createErrorResponse($url, RingException $e) |
| 127 | 131 | { |
@@ -180,6 +184,9 @@ discard block |
||
| 180 | 184 | return $resource; |
| 181 | 185 | } |
| 182 | 186 | |
| 187 | + /** |
|
| 188 | + * @param string $url |
|
| 189 | + */ |
|
| 183 | 190 | private function createStream($url, array $request) |
| 184 | 191 | { |
| 185 | 192 | static $methods; |
@@ -391,6 +398,9 @@ discard block |
||
| 391 | 398 | ); |
| 392 | 399 | } |
| 393 | 400 | |
| 401 | + /** |
|
| 402 | + * @param resource $context |
|
| 403 | + */ |
|
| 394 | 404 | private function createStreamResource( |
| 395 | 405 | $url, |
| 396 | 406 | array $request, |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | * |
| 17 | 17 | * @param callable[] $functions Array of functions to proxy to. |
| 18 | 18 | * |
| 19 | - * @return callable |
|
| 19 | + * @return \Closure |
|
| 20 | 20 | */ |
| 21 | 21 | public static function callArray(array $functions) |
| 22 | 22 | { |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | * @param StreamInterface $stream Stream to wrap |
| 21 | 21 | * @param int $limit Total number of bytes to allow to be read |
| 22 | 22 | * from the stream. Pass -1 for no limit. |
| 23 | - * @param int|null $offset Position to seek to before reading (only |
|
| 23 | + * @param integer $offset Position to seek to before reading (only |
|
| 24 | 24 | * works on seekable streams). |
| 25 | 25 | */ |
| 26 | 26 | public function __construct( |
@@ -144,6 +144,9 @@ |
||
| 144 | 144 | return isset($this->metadata[$key]) ? $this->metadata[$key] : null; |
| 145 | 145 | } |
| 146 | 146 | |
| 147 | + /** |
|
| 148 | + * @param integer $length |
|
| 149 | + */ |
|
| 147 | 150 | private function pump($length) |
| 148 | 151 | { |
| 149 | 152 | if ($this->source) { |
@@ -114,6 +114,9 @@ |
||
| 114 | 114 | return $this->stream->isSeekable(); |
| 115 | 115 | } |
| 116 | 116 | |
| 117 | + /** |
|
| 118 | + * @param integer $offset |
|
| 119 | + */ |
|
| 117 | 120 | public function seek($offset, $whence = SEEK_SET) |
| 118 | 121 | { |
| 119 | 122 | return $this->stream->seek($offset, $whence); |
@@ -156,7 +156,7 @@ |
||
| 156 | 156 | * @param StreamInterface $stream Stream to read from |
| 157 | 157 | * @param int $maxLength Maximum buffer length |
| 158 | 158 | * |
| 159 | - * @return string|bool |
|
| 159 | + * @return string |
|
| 160 | 160 | */ |
| 161 | 161 | public static function readline(StreamInterface $stream, $maxLength = null) |
| 162 | 162 | { |