@@ -98,7 +98,7 @@ |
||
| 98 | 98 | * @inheritdoc |
| 99 | 99 | * @codeCoverageIgnore |
| 100 | 100 | */ |
| 101 | - public function getSize():?int{ |
|
| 101 | + public function getSize(): ?int{ |
|
| 102 | 102 | return $this->stream->getSize(); |
| 103 | 103 | } |
| 104 | 104 | |
@@ -52,14 +52,14 @@ |
||
| 52 | 52 | |
| 53 | 53 | $requestUri = (string)$uri->withFragment(''); |
| 54 | 54 | |
| 55 | - set_error_handler(function ($severity, $msg, $file, $line){ |
|
| 55 | + set_error_handler(function($severity, $msg, $file, $line){ |
|
| 56 | 56 | throw new \ErrorException($msg, 0, $severity, $file, $line); |
| 57 | 57 | }); |
| 58 | 58 | |
| 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 | + } catch(\Exception $e){ |
|
| 63 | 63 | throw new ClientException($e->getMessage(), $e->getCode()); |
| 64 | 64 | } |
| 65 | 65 | |
@@ -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 | |