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,9 +151,11 @@ class NotificationController extends Controller
/**
* get the page to list the notifications.
*
* @return response
*/
public static function getNotifications() {
public static function getNotifications()
{
$notifications = UserNotification::with([
'notification.type' => function ($query) {
$query->select('id', 'message', 'type');
@@ -163,6 +165,7 @@ class NotificationController extends Controller
$query->select('id', 'ticket_number');
},
])->where('user_id', '=', \Auth::user()->id);
return $notifications;
}
}