Passed
Push — master ( 110e58...0c1eb5 )
by Alexpts
01:16
created
src/Socket.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,9 +18,9 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Tcp/TcpSocket.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.