Apply fixes from StyleCI

This commit is contained in:
Manish Verma
2016-12-28 10:53:49 +00:00
committed by StyleCI Bot
parent 63919b9ccd
commit c5b261ff3c

View File

@@ -151,18 +151,21 @@ class NotificationController extends Controller
/** /**
* get the page to list the notifications. * get the page to list the notifications.
*
* @return response * @return response
*/ */
public static function getNotifications() { public static function getNotifications()
{
$notifications = UserNotification::with([ $notifications = UserNotification::with([
'notification.type' => function($query) { 'notification.type' => function ($query) {
$query->select('id', 'message', 'type'); $query->select('id', 'message', 'type');
}, 'users' => function($query) { }, 'users' => function ($query) {
$query->select('id', 'email', 'profile_pic'); $query->select('id', 'email', 'profile_pic');
}, 'notification.model' => function($query) { }, 'notification.model' => function ($query) {
$query->select('id', 'ticket_number'); $query->select('id', 'ticket_number');
}, },
])->where('user_id', '=', \Auth::user()->id); ])->where('user_id', '=', \Auth::user()->id);
return $notifications; return $notifications;
} }
} }