Completed
Push — master ( ff9125...1dbcfc )
by Arthur
02:53
created
src/WebSocketServer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -57,8 +57,8 @@  discard block
 block discarded – undo
57 57
         $this->config = $config;
58 58
 
59 59
         // setting config options
60
-        if (!empty($config['clients_per_fork_limit']) && (int)$config['clients_per_fork_limit'] > 0) {
61
-            $this->clientsPerFork = (int)$config['clients_per_fork_limit'];
60
+        if (!empty($config['clients_per_fork_limit']) && (int) $config['clients_per_fork_limit'] > 0) {
61
+            $this->clientsPerFork = (int) $config['clients_per_fork_limit'];
62 62
         }
63 63
     }
64 64
 
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
         }
323 323
 
324 324
         $key = $match[1];
325
-        $this->handshakes[(int)$client] = $key;
325
+        $this->handshakes[(int) $client] = $key;
326 326
         // sending header according to WebSocket Protocol
327 327
         $secWebSocketAccept = base64_encode(sha1(trim($key) . self::HEADER_WEBSOCKET_ACCEPT_HASH, true));
328 328
         $this->setHeadersUpgrade($secWebSocketAccept);
Please login to merge, or discard this patch.