@@ -26,7 +26,7 @@ |
||
26 | 26 | * @see http://php.net/manual/features.file-upload.post-method.php |
27 | 27 | * @see http://php.net/manual/features.file-upload.errors.php |
28 | 28 | * |
29 | - * @param StreamInterface $stream Underlying stream representing the |
|
29 | + * @param \Psr\Http\Message\StreamInterface $stream Underlying stream representing the |
|
30 | 30 | * uploaded file content. |
31 | 31 | * @param int $size in bytes |
32 | 32 | * @param int $error PHP file upload error |
@@ -203,7 +203,7 @@ |
||
203 | 203 | * |
204 | 204 | * @author Michael Dowling and contributors to guzzlehttp/psr7 |
205 | 205 | * |
206 | - * @param StreamInterface $dest Stream to write to |
|
206 | + * @param \Psr\Http\Message\StreamInterface $dest Stream to write to |
|
207 | 207 | * |
208 | 208 | * @throws \RuntimeException on error |
209 | 209 | */ |
@@ -157,8 +157,8 @@ |
||
157 | 157 | private function hasHeader(array $headers, string $key):bool{ |
158 | 158 | $lowercaseHeader = strtolower($key); |
159 | 159 | |
160 | - foreach ($headers as $k => $v) { |
|
161 | - if (strtolower($k) === $lowercaseHeader) { |
|
160 | + foreach ($headers as $k => $v){ |
|
161 | + if (strtolower($k) === $lowercaseHeader){ |
|
162 | 162 | return true; |
163 | 163 | } |
164 | 164 | } |
@@ -59,7 +59,8 @@ |
||
59 | 59 | try{ |
60 | 60 | $responseBody = file_get_contents($requestUri, false, $context); |
61 | 61 | $responseHeaders = $this->parseResponseHeaders(get_headers($requestUri, 1, $context)); |
62 | - }catch(\Exception $e){ |
|
62 | + } |
|
63 | + catch(\Exception $e){ |
|
63 | 64 | throw new ClientException($e->getMessage(), $e->getCode()); |
64 | 65 | } |
65 | 66 |