Apply fixes from StyleCI

This commit is contained in:
Manish Verma
2018-08-10 10:43:24 +00:00
committed by StyleCI Bot
parent 0c49050172
commit 117b826aa1
2 changed files with 12 additions and 11 deletions

View File

@@ -989,6 +989,7 @@ class ApiController extends Controller
->distinct() ->distinct()
->paginate(10) ->paginate(10)
->toArray(); ->toArray();
return response($inbox); return response($inbox);
} catch (\Exception $ex) { } catch (\Exception $ex) {
$error = $ex->getMessage(); $error = $ex->getMessage();

View File

@@ -50,16 +50,16 @@ class AgentLayout
{ {
$notifications = \App\Http\Controllers\Common\NotificationController::getNotifications(); $notifications = \App\Http\Controllers\Common\NotificationController::getNotifications();
$view->with([ $view->with([
'company' => $this->company, 'company' => $this->company,
'notifications' => $notifications, 'notifications' => $notifications,
'myticket' => $this->myTicket(), 'myticket' => $this->myTicket(),
'unassigned' => $this->unassigned(), 'unassigned' => $this->unassigned(),
'followup_ticket' => $this->followupTicket(), 'followup_ticket' => $this->followupTicket(),
'deleted' => $this->deleted(), 'deleted' => $this->deleted(),
'tickets' => $this->inbox(), 'tickets' => $this->inbox(),
'department' => $this->departments(), 'department' => $this->departments(),
'overdues' => $this->overdues(), 'overdues' => $this->overdues(),
'due_today' => $this->getDueToday(), 'due_today' => $this->getDueToday(),
'is_mail_conigured' => $this->getEmailConfig(), 'is_mail_conigured' => $this->getEmailConfig(),
]); ]);
} }
@@ -201,7 +201,7 @@ class AgentLayout
/** /**
* @category function to check configured mails * @category function to check configured mails
* *
* @var $emails * @var
* *
* @return bool true/false * @return bool true/false
*/ */