@@ -18,9 +18,9 @@ |
||
18 | 18 | public function connect(string $address, array $options = []): TransportInterface |
19 | 19 | { |
20 | 20 | if ($this->target === null) { |
21 | - $timeout = (float)($options['timeout'] ??(float) ini_get('default_socket_timeout')); |
|
21 | + $timeout = (float) ($options['timeout'] ??(float) ini_get('default_socket_timeout')); |
|
22 | 22 | $port = $options['port'] ?? 0; |
23 | - $url = $this->schema . $address; |
|
23 | + $url = $this->schema.$address; |
|
24 | 24 | $this->target = fsockopen($url, $port, $this->errorNumber, $this->errorMessage, $timeout); |
25 | 25 | } |
26 | 26 |
@@ -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; |