Apply Laravel coding style
Shift automatically applies the Laravel coding style - which uses the PSR-12 coding style as a base with some minor additions. You may customize the code style applied by configuring [Pint](https://laravel.com/docs/pint), [PHP CS Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer), or [PHP CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) for your project root. For more information on customizing the code style applied by Shift, [watch this short video](https://laravelshift.com/videos/shift-code-style).
This commit is contained in:
@@ -30,7 +30,6 @@ 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)
|
||||
@@ -47,25 +46,24 @@ 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(),
|
||||
]);
|
||||
}
|
||||
@@ -225,13 +223,12 @@ 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