@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | public function getHost(): string |
| 52 | 52 | { |
| 53 | 53 | $host = '' . $this->host; |
| 54 | - return (preg_match('#^[0-9a-f:]+$#', $host) ? '[' . $host .']' : $host ); // IPv6 |
|
| 54 | + return (preg_match('#^[0-9a-f:]+$#', $host) ? '[' . $host . ']' : $host); // IPv6 |
|
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | public function getPort(): ?int |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | |
| 62 | 62 | public function getTimeout(): ?float |
| 63 | 63 | { |
| 64 | - return empty($this->timeout) ? null : floatval($this->timeout) ; |
|
| 64 | + return empty($this->timeout) ? null : floatval($this->timeout); |
|
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | public function getProtocol(): int |