@@ -67,8 +67,7 @@ |
||
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | $tokens[] = $device->device_token; |
| 70 | - } |
|
| 71 | - catch (\Exception $e) |
|
| 70 | + } catch (\Exception $e) |
|
| 72 | 71 | { |
| 73 | 72 | $device->forceDelete(); |
| 74 | 73 | } |
@@ -307,7 +307,7 @@ |
||
| 307 | 307 | if ($timezone && $timezone !== $user->timezone) |
| 308 | 308 | { |
| 309 | 309 | $user->timezone = $timezone; |
| 310 | - $update = true; |
|
| 310 | + $update = true; |
|
| 311 | 311 | } |
| 312 | 312 | |
| 313 | 313 | if ($update) |
@@ -11,6 +11,6 @@ |
||
| 11 | 11 | | |
| 12 | 12 | */ |
| 13 | 13 | |
| 14 | -Broadcast::channel('users.{id}', function ($user, $id) { |
|
| 14 | +Broadcast::channel('users.{id}', function($user, $id) { |
|
| 15 | 15 | return (int) $user->id === (int) $id; |
| 16 | 16 | }); |