@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | |
141 | 141 | /** |
142 | 142 | * @param $msg |
143 | - * @param $from |
|
143 | + * @param ConnectionInterface $from |
|
144 | 144 | * @throws WebSocketException |
145 | 145 | */ |
146 | 146 | function checkForRequiredInMessage($msg, $from) |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | } |
156 | 156 | |
157 | 157 | /** |
158 | - * @param $clonedObject |
|
158 | + * @param Receiver $clonedObject |
|
159 | 159 | * @param $clone |
160 | 160 | */ |
161 | 161 | function cloneProperties($clonedObject, $clone) |
@@ -46,7 +46,7 @@ |
||
46 | 46 | $this->userAuthSocketMapper = []; |
47 | 47 | |
48 | 48 | $this->mainRoutes(); |
49 | - include base_path() . '/routes/websocket.php'; |
|
49 | + include base_path().'/routes/websocket.php'; |
|
50 | 50 | $this->routes = WsRoute::getRoutes(); |
51 | 51 | } |
52 | 52 |
@@ -20,12 +20,12 @@ discard block |
||
20 | 20 | */ |
21 | 21 | function enterRoom() |
22 | 22 | { |
23 | - $this->validate($this->request,[ |
|
23 | + $this->validate($this->request, [ |
|
24 | 24 | 'room_id'=>'required' |
25 | 25 | ]); |
26 | - $room_id =$this->request->room_id; |
|
26 | + $room_id = $this->request->room_id; |
|
27 | 27 | |
28 | - $this->validateRoom($room_id,true); |
|
28 | + $this->validateRoom($room_id, true); |
|
29 | 29 | |
30 | 30 | $this->addMember($room_id); |
31 | 31 | } |
@@ -36,10 +36,10 @@ discard block |
||
36 | 36 | function exitRoom() |
37 | 37 | { |
38 | 38 | |
39 | - $this->validate($this->request,[ |
|
39 | + $this->validate($this->request, [ |
|
40 | 40 | 'room_id'=>'required' |
41 | 41 | ]); |
42 | - $room_id =$this->request->room_id; |
|
42 | + $room_id = $this->request->room_id; |
|
43 | 43 | |
44 | 44 | $this->validateRoom($room_id); |
45 | 45 |