@@ -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 | |