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:
Shift
2023-01-03 08:25:25 +00:00
parent b535aa90eb
commit 43386fd86d
357 changed files with 15021 additions and 15193 deletions

View File

@@ -19,15 +19,17 @@ class AgentLayout
* @var UserRepository
*/
protected $company;
protected $users;
protected $tickets;
protected $department;
/**
* Create a new profile composer.
*
* @param
*
* @return void
*/
public function __construct(Company $company, User $users, Tickets $tickets, Department $department, Emails $emails, CommonSettings $common_settings)
@@ -44,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(),
]);
}
@@ -222,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'];

View File

@@ -17,13 +17,13 @@ class AuthUser
public function compose(View $view)
{
$view->with([
'auth_user_role' => $this->user->role,
'auth_user_id' => $this->user->id,
'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,
'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,
]);
}
}