@@ -327,7 +327,7 @@ |
||
327 | 327 | } |
328 | 328 | |
329 | 329 | $key = $match[1]; |
330 | - $this->handshakes[(int)$client] = $key; |
|
330 | + $this->handshakes[(int) $client] = $key; |
|
331 | 331 | |
332 | 332 | // sending header according to WebSocket Protocol |
333 | 333 | $secWebSocketAccept = base64_encode(sha1(trim($key) . self::HEADER_WEBSOCKET_ACCEPT_HASH, true)); |
@@ -139,7 +139,7 @@ |
||
139 | 139 | */ |
140 | 140 | public function getUniqueSocketId(): int |
141 | 141 | { |
142 | - return (int)$this->socketConnection; |
|
142 | + return (int) $this->socketConnection; |
|
143 | 143 | } |
144 | 144 | |
145 | 145 | /** |