@@ -29,11 +29,9 @@ |
||
29 | 29 | public function handle(NewTipCommentEvent $event) |
30 | 30 | { |
31 | 31 | $notificationType = UserSettingType::where('name', 'Receive Email Notifications')->first(); |
32 | - $userList = User::whereHas('UserSetting', function($q) use ($notificationType) |
|
33 | - { |
|
32 | + $userList = User::whereHas('UserSetting', function($q) use ($notificationType) { |
|
34 | 33 | $q->where('setting_type_id', $notificationType->setting_type_id)->where('value', true); |
35 | - })->whereHas('TechTipBookmark', function($q) use ($event) |
|
36 | - { |
|
34 | + })->whereHas('TechTipBookmark', function($q) use ($event) { |
|
37 | 35 | $q->where('tip_id', $event->tip_id); |
38 | 36 | })->get(); |
39 | 37 |