@@ -33,7 +33,7 @@ |
||
33 | 33 | * @param \Illuminate\Contracts\Auth\Access\Gate $gate |
34 | 34 | * @param \App\Containers\Authentication\Tasks\GetAuthenticatedUserTask $getAuthenticatedUserTask |
35 | 35 | * |
36 | - * @return mixed |
|
36 | + * @return boolean |
|
37 | 37 | */ |
38 | 38 | public function authorize(Gate $gate, GetAuthenticatedUserTask $getAuthenticatedUserTask) |
39 | 39 | { |
@@ -19,8 +19,8 @@ |
||
19 | 19 | /* |
20 | 20 | * Authenticate the user's personal channel... |
21 | 21 | */ |
22 | - Broadcast::channel('App.User.*', function ($user, $userId) { |
|
23 | - return (int) $user->id === (int) $userId; |
|
22 | + Broadcast::channel('App.User.*', function($user, $userId) { |
|
23 | + return (int)$user->id === (int)$userId; |
|
24 | 24 | }); |
25 | 25 | } |
26 | 26 | } |