From c5b261ff3c78b964ebb26949e87b83aa1afb4a19 Mon Sep 17 00:00:00 2001 From: Manish Verma Date: Wed, 28 Dec 2016 10:53:49 +0000 Subject: [PATCH] Apply fixes from StyleCI --- .../Controllers/Common/NotificationController.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/app/Http/Controllers/Common/NotificationController.php b/app/Http/Controllers/Common/NotificationController.php index 3ae311ab8..8e77432ac 100644 --- a/app/Http/Controllers/Common/NotificationController.php +++ b/app/Http/Controllers/Common/NotificationController.php @@ -151,18 +151,21 @@ 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) { + 'notification.type' => function ($query) { $query->select('id', 'message', 'type'); - }, 'users' => function($query) { + }, 'users' => function ($query) { $query->select('id', 'email', 'profile_pic'); - }, 'notification.model' => function($query) { + }, 'notification.model' => function ($query) { $query->select('id', 'ticket_number'); }, ])->where('user_id', '=', \Auth::user()->id); + return $notifications; } }