Passed
Push — master ( dde472...6978f3 )
by Alexpts
01:57
created
src/SplitPackageUdp.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
         $packages = $this->splitToChunks($message);
16 16
         $bytes = 0;
17 17
         foreach ($packages as $package) {
18
-            $bytes += (int)parent::write($package);
18
+            $bytes += (int) parent::write($package);
19 19
         }
20 20
 
21 21
         return $bytes;
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         $id = $this->generateId();
41 41
 
42 42
         foreach ($chunks as $n => &$chunk) {
43
-            $chunk = self::CHUNK_MAGIC . $id . pack('CC', $n, $count) . $chunk;
43
+            $chunk = self::CHUNK_MAGIC.$id.pack('CC', $n, $count).$chunk;
44 44
         }
45 45
 
46 46
         return $chunks;
Please login to merge, or discard this patch.
src/Socket.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,9 +14,9 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/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.