|
@@ -12,9 +12,9 @@ |
|
|
block discarded – undo |
|
12
|
12
|
public function connect(string $address, array $options = []): static |
|
13
|
13
|
{ |
|
14
|
14
|
if ($this->target === null) { |
|
15
|
|
- $timeout = (float)($options['timeout'] ??(float) ini_get('default_socket_timeout')); |
|
|
15
|
+ $timeout = (float) ($options['timeout'] ?? (float) ini_get('default_socket_timeout')); |
|
16
|
16
|
$port = $options['port'] ?? 0; |
|
17
|
|
- $url = $this->schema . $address; |
|
|
17
|
+ $url = $this->schema.$address; |
|
18
|
18
|
$this->target = fsockopen($url, $port, $this->errorNumber, $this->errorMessage, $timeout); |
|
19
|
19
|
} |
|
20
|
20
|
|
Please login to merge, or discard this patch.