From 117b826aa1bf3c6a4711a35de5e4f837626d40a6 Mon Sep 17 00:00:00 2001 From: Manish Verma Date: Fri, 10 Aug 2018 10:43:24 +0000 Subject: [PATCH] Apply fixes from StyleCI --- app/Api/v1/ApiController.php | 1 + app/Http/ViewComposers/AgentLayout.php | 22 +++++++++++----------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/app/Api/v1/ApiController.php b/app/Api/v1/ApiController.php index a07db822e..2408d5e58 100644 --- a/app/Api/v1/ApiController.php +++ b/app/Api/v1/ApiController.php @@ -989,6 +989,7 @@ class ApiController extends Controller ->distinct() ->paginate(10) ->toArray(); + return response($inbox); } catch (\Exception $ex) { $error = $ex->getMessage(); diff --git a/app/Http/ViewComposers/AgentLayout.php b/app/Http/ViewComposers/AgentLayout.php index 764c75439..41eacc42b 100644 --- a/app/Http/ViewComposers/AgentLayout.php +++ b/app/Http/ViewComposers/AgentLayout.php @@ -50,16 +50,16 @@ class AgentLayout { $notifications = \App\Http\Controllers\Common\NotificationController::getNotifications(); $view->with([ - 'company' => $this->company, - 'notifications' => $notifications, - 'myticket' => $this->myTicket(), - 'unassigned' => $this->unassigned(), - 'followup_ticket' => $this->followupTicket(), - 'deleted' => $this->deleted(), - 'tickets' => $this->inbox(), - 'department' => $this->departments(), - 'overdues' => $this->overdues(), - 'due_today' => $this->getDueToday(), + 'company' => $this->company, + 'notifications' => $notifications, + 'myticket' => $this->myTicket(), + 'unassigned' => $this->unassigned(), + 'followup_ticket' => $this->followupTicket(), + 'deleted' => $this->deleted(), + 'tickets' => $this->inbox(), + 'department' => $this->departments(), + 'overdues' => $this->overdues(), + 'due_today' => $this->getDueToday(), 'is_mail_conigured' => $this->getEmailConfig(), ]); } @@ -201,7 +201,7 @@ class AgentLayout /** * @category function to check configured mails * - * @var $emails + * @var * * @return bool true/false */