@@ -14,9 +14,9 @@ |
||
14 | 14 | */ |
15 | 15 | public function connect(string $address, array $options = []): TransportInterface |
16 | 16 | { |
17 | - $timeout = (float)($options['timeout'] ??(float) ini_get('default_socket_timeout')); |
|
17 | + $timeout = (float) ($options['timeout'] ??(float) ini_get('default_socket_timeout')); |
|
18 | 18 | $port = $options['port'] ?? 0; |
19 | - $url = $this->schema . $address; |
|
19 | + $url = $this->schema.$address; |
|
20 | 20 | $this->target = @fsockopen($url, $port, $this->errorNumber, $this->errorMessage, $timeout); |
21 | 21 | |
22 | 22 | return $this; |
@@ -14,7 +14,7 @@ |
||
14 | 14 | parent::connect($address, $options); |
15 | 15 | |
16 | 16 | if ($this->target === false) { |
17 | - throw new RuntimeException('can`t open socket - ' . $this->errorNumber . ': ' . $this->errorMessage); |
|
17 | + throw new RuntimeException('can`t open socket - '.$this->errorNumber.': '.$this->errorMessage); |
|
18 | 18 | } |
19 | 19 | |
20 | 20 | return $this; |