Apply fixes from StyleCI
This commit is contained in:
		| @@ -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']; | ||||
|   | ||||
| @@ -17,11 +17,11 @@ class AuthUser | ||||
|     public function compose(View $view) | ||||
|     { | ||||
|         $view->with([ | ||||
|             'auth_user_role' => $this->user->role, | ||||
|             'auth_user_id' => $this->user->id, | ||||
|             'auth_user_profile_pic' => $this->user->profile_pic, | ||||
|             'auth_name' => $this->user->name(), | ||||
|             'auth_user_active' => $this->user->active, | ||||
|             'auth_user_role'         => $this->user->role, | ||||
|             'auth_user_id'           => $this->user->id, | ||||
|             'auth_user_profile_pic'  => $this->user->profile_pic, | ||||
|             'auth_name'              => $this->user->name(), | ||||
|             'auth_user_active'       => $this->user->active, | ||||
|             'auth_user_primary_dept' => $this->user->primary_dept, | ||||
|             'auth_user_assign_group' => $this->user->assign_group, | ||||
|         ]); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 StyleCI Bot
					StyleCI Bot