Apply fixes from StyleCI

This commit is contained in:
StyleCI Bot
2023-01-03 08:26:59 +00:00
parent fd79c97a1d
commit 9d1a57f99d
236 changed files with 14774 additions and 14382 deletions

View File

@@ -30,6 +30,7 @@ class AgentLayout
* Create a new profile composer.
*
* @param
*
* @return void
*/
public function __construct(Company $company, User $users, Tickets $tickets, Department $department, Emails $emails, CommonSettings $common_settings)
@@ -46,24 +47,25 @@ class AgentLayout
/**
* Bind data to the view.
*
* @param View $view
* @param View $view
*
* @return void
*/
public function compose(View $view)
{
$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(),
'is_mail_conigured' => $this->getEmailConfig(),
'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(),
'dummy_installation' => $this->getDummyDataInstallation(),
]);
}
@@ -223,12 +225,13 @@ class AgentLayout
* @category function to check if dummy data is installed in the system or not
*
* @param null
*
* @return builder
*/
public function getDummyDataInstallation()
{
$return_collection = $this->common_settings->select('status')->where('option_name', '=', 'dummy_data_installation')->first();
if (! $return_collection) {
if (!$return_collection) {
$return_collection = collect(['status' => 0]);
return $return_collection['status'];