From 53281e29e80909edfc20c2dee31b6dbddeaa4f5f Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Wed, 13 Sep 2023 07:34:39 +0000 Subject: [PATCH] Apply fixes from StyleCI --- app/Api/v1/TokenAuthController.php | 4 ++-- app/Exceptions/Handler.php | 2 +- app/Helper/Finder.php | 8 ++++---- .../Admin/helpdesk/SettingsController.php | 18 +++++++++--------- .../Admin/helpdesk/SettingsController2.php | 16 ++++++++-------- .../helpdesk/Filter/FilterControllerOld.php | 4 ++-- .../Agent/helpdesk/NotificationController.php | 8 ++++---- .../Agent/helpdesk/TicketController.php | 4 ++-- .../Auth/ForgotPasswordController.php | 4 ++-- .../Controllers/Auth/PasswordController.php | 4 ++-- .../Client/helpdesk/GuestController.php | 4 ++-- .../Client/helpdesk/UnAuthController.php | 8 ++++---- .../Controllers/Common/PhpMailController.php | 2 +- .../Middleware/RedirectIfAuthenticated.php | 6 +++--- app/Http/Requests/helpdesk/AgentRequest.php | 4 ++-- app/Http/Requests/helpdesk/ClientRequest.php | 4 ++-- .../Requests/helpdesk/CreateTicketRequest.php | 6 +++--- app/Http/Requests/helpdesk/ProfileRequest.php | 2 +- app/Http/Requests/helpdesk/RegisterRequest.php | 4 ++-- app/Http/Requests/helpdesk/Sys_userRequest.php | 6 +++--- 20 files changed, 59 insertions(+), 59 deletions(-) diff --git a/app/Api/v1/TokenAuthController.php b/app/Api/v1/TokenAuthController.php index 577d5836b1..5c596018c9 100644 --- a/app/Api/v1/TokenAuthController.php +++ b/app/Api/v1/TokenAuthController.php @@ -174,8 +174,8 @@ public function forgotPassword(Request $request) $password_reset_table = \DB::table('password_resets')->where('email', '=', $user->email)->first(); if (isset($password_reset_table)) { $password_reset_table = \DB::table('password_resets')->where('email', '=', $user->email)->update(['token' => $code, 'created_at' => $date]); - // $password_reset_table->token = $code; - // $password_reset_table->update(['token' => $code]); + // $password_reset_table->token = $code; + // $password_reset_table->update(['token' => $code]); } else { $create_password_reset = \DB::table('password_resets')->insert(['email' => $user->email, 'token' => $code, 'created_at' => $date]); } diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index 5bc7cbdb31..f4a7c2d568 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -59,7 +59,7 @@ protected function invalidJson($request, ValidationException $exception) } /** - * @param $request + * @param $request * @param \Throwable $e * * @throws \Throwable diff --git a/app/Helper/Finder.php b/app/Helper/Finder.php index 594f9d1c42..f18d541b80 100644 --- a/app/Helper/Finder.php +++ b/app/Helper/Finder.php @@ -22,7 +22,7 @@ class Finder * DEPARTMENT * This function is used for returning department name with respect to id. * - * @param $id type int + * @param $id type int * @param $custom type array/null * * @return type string @@ -42,7 +42,7 @@ public static function department($id, $custom = null) * GROUP * This function is used for returning group name with respect to id. * - * @param $id type int + * @param $id type int * @param $custom type array/null * * @return type string @@ -62,7 +62,7 @@ public static function group($id, $custom = null) * STATUS TYPE * This function is used for returning status type name with respect to id. * - * @param $id type int + * @param $id type int * @param $custom type array/null * * @return type string @@ -82,7 +82,7 @@ public static function statusType($id, $custom = null) * STATUS * This function is used for returning status name with respect to id. * - * @param $id type int + * @param $id type int * @param $custom type array/null * * @return type string diff --git a/app/Http/Controllers/Admin/helpdesk/SettingsController.php b/app/Http/Controllers/Admin/helpdesk/SettingsController.php index 6ff51b8146..003a107797 100644 --- a/app/Http/Controllers/Admin/helpdesk/SettingsController.php +++ b/app/Http/Controllers/Admin/helpdesk/SettingsController.php @@ -63,7 +63,7 @@ public function __construct() /** * @param int $id - * @param $compant instance of company table + * @param $compant instance of company table * * get the form for company setting page * @@ -118,7 +118,7 @@ public function postcompany($id, Company $company, CompanyRequest $request) /** * function to delete system logo. * - * @return type string + * @return type string */ public function deleteLogo() { @@ -583,7 +583,7 @@ public function postalert($id, Alert $alert, Request $request) /** * Generate Api key. * - * @return type json + * @return type json */ public function generateApiKey() { @@ -604,7 +604,7 @@ public function settings() /** * @param int $id - * @param $compant instance of company table + * @param $compant instance of company table * * get the form for company setting page * @@ -624,7 +624,7 @@ public function getStatuses() /** * @param int $id - * @param $compant instance of company table + * @param $compant instance of company table * * get the form for company setting page * @@ -644,7 +644,7 @@ public function getEditStatuses($id) /** * @param int $id - * @param $compant instance of company table + * @param $compant instance of company table * * get the form for company setting page * @@ -780,7 +780,7 @@ public function deleteNotificationLog() /** * To display the list of ratings in the system. * - * @return type View + * @return type View */ public function RatingSettings() { @@ -814,7 +814,7 @@ public function editRatingSettings($id) /** * To store rating data. * - * @return type Redirect + * @return type Redirect */ public function PostRatingSettings($id, Rating $ratings, RatingUpdateRequest $request) { @@ -875,7 +875,7 @@ public function storeRating(Rating $rating, \App\Model\helpdesk\Ratings\RatingRe /** * To delete a type of rating. * - * @return type Redirect + * @return type Redirect */ public function RatingDelete($slug, \App\Model\helpdesk\Ratings\RatingRef $ratingrefs) { diff --git a/app/Http/Controllers/Admin/helpdesk/SettingsController2.php b/app/Http/Controllers/Admin/helpdesk/SettingsController2.php index 4841229fa0..5a32600456 100644 --- a/app/Http/Controllers/Admin/helpdesk/SettingsController2.php +++ b/app/Http/Controllers/Admin/helpdesk/SettingsController2.php @@ -98,7 +98,7 @@ public function deleteNotificationLog() /** * @param int $id - * @param $compant instance of company table + * @param $compant instance of company table * * get the form for company setting page * @@ -118,7 +118,7 @@ public function getStatuses() /** * @param int $id - * @param $compant instance of company table + * @param $compant instance of company table * * get the form for company setting page * @@ -189,7 +189,7 @@ public function deleteStatuses($id) /** * @param int $id - * @param $compant instance of company table + * @param $compant instance of company table * * get the form for company setting page * @@ -244,7 +244,7 @@ public function postcompany($id, Company $company, CompanyRequest $request) /** * function to delete system logo. * - * @return type string + * @return type string */ public function deleteLogo() { @@ -684,7 +684,7 @@ public function postalert($id, Alert $alert, Request $request) /** * To display the list of ratings in the system. * - * @return type View + * @return type View */ public function RatingSettings() { @@ -696,7 +696,7 @@ public function RatingSettings() /** * To store rating data. * - * @return type Redirect + * @return type Redirect */ public function PostRatingSettings($slug) { @@ -721,7 +721,7 @@ public function createRating() /** * To delete a type of rating. * - * @return type Redirect + * @return type Redirect */ public function RatingDelete($slug) { @@ -733,7 +733,7 @@ public function RatingDelete($slug) /** * Generate Api key. * - * @return type json + * @return type json */ public function generateApiKey() { diff --git a/app/Http/Controllers/Agent/helpdesk/Filter/FilterControllerOld.php b/app/Http/Controllers/Agent/helpdesk/Filter/FilterControllerOld.php index 48919929af..7d0a7a4ab3 100644 --- a/app/Http/Controllers/Agent/helpdesk/Filter/FilterControllerOld.php +++ b/app/Http/Controllers/Agent/helpdesk/Filter/FilterControllerOld.php @@ -315,9 +315,9 @@ public function departmentTickets($dept, $status) /** *@category function to format and return user tickets * - *@param string $segment + * @param string $segment * - *@return builder + * @return builder */ public function formatUserTickets($segment) { diff --git a/app/Http/Controllers/Agent/helpdesk/NotificationController.php b/app/Http/Controllers/Agent/helpdesk/NotificationController.php index 13b4f6d9fc..e289282dd2 100644 --- a/app/Http/Controllers/Agent/helpdesk/NotificationController.php +++ b/app/Http/Controllers/Agent/helpdesk/NotificationController.php @@ -72,7 +72,7 @@ public function send_notification() * * @param company * - * @return mail + * @return mail * */ public function send_notification_to_admin($company) { @@ -102,7 +102,7 @@ public function send_notification_to_admin($company) /** * Department Manager Notification/Report. * - * @return mail + * @return mail * */ public function send_notification_to_manager($company) { @@ -138,7 +138,7 @@ public function send_notification_to_manager($company) /** * Team Lead Notification/Report. * - * @return mail + * @return mail * */ public function send_notification_to_team_lead($company) { @@ -174,7 +174,7 @@ public function send_notification_to_team_lead($company) /** * Agent Notification/Report. * - * @return mail + * @return mail * */ public function send_notification_to_agent($company) { diff --git a/app/Http/Controllers/Agent/helpdesk/TicketController.php b/app/Http/Controllers/Agent/helpdesk/TicketController.php index 3563e7c40e..e85890f4ad 100755 --- a/app/Http/Controllers/Agent/helpdesk/TicketController.php +++ b/app/Http/Controllers/Agent/helpdesk/TicketController.php @@ -2321,7 +2321,7 @@ public function getParentTickets($id) * *@param null * - *@return string //script to load tooltip data + * @return string //script to load tooltip data */ public static function tooltip($ticketid) { @@ -2672,7 +2672,7 @@ public function fileContent($path) * *@param srting array $t_id, $p_id * - *@return null + * @return null */ public function sendMergeNotification($p_id, $t_id) { diff --git a/app/Http/Controllers/Auth/ForgotPasswordController.php b/app/Http/Controllers/Auth/ForgotPasswordController.php index 3ede1033d5..c10a09bf78 100644 --- a/app/Http/Controllers/Auth/ForgotPasswordController.php +++ b/app/Http/Controllers/Auth/ForgotPasswordController.php @@ -58,8 +58,8 @@ public function sendResetLinkEmail(Request $request) $password_reset_table = DB::table('password_resets')->where('email', '=', $user->email)->first(); if (isset($password_reset_table)) { $password_reset_table = DB::table('password_resets')->where('email', '=', $user->email)->update(['token' => $code, 'created_at' => $date]); - // $password_reset_table->token = $code; - // $password_reset_table->update(['token' => $code]); + // $password_reset_table->token = $code; + // $password_reset_table->update(['token' => $code]); } else { $create_password_reset = DB::table('password_resets')->insert(['email' => $user->email, 'token' => $code, 'created_at' => $date]); } diff --git a/app/Http/Controllers/Auth/PasswordController.php b/app/Http/Controllers/Auth/PasswordController.php index 9c783fd5c7..437cc3b725 100644 --- a/app/Http/Controllers/Auth/PasswordController.php +++ b/app/Http/Controllers/Auth/PasswordController.php @@ -63,8 +63,8 @@ public function postEmail(Request $request) $password_reset_table = \DB::table('password_resets')->where('email', '=', $user->email)->first(); if (isset($password_reset_table)) { $password_reset_table = \DB::table('password_resets')->where('email', '=', $user->email)->update(['token' => $code, 'created_at' => $date]); - // $password_reset_table->token = $code; - // $password_reset_table->update(['token' => $code]); + // $password_reset_table->token = $code; + // $password_reset_table->update(['token' => $code]); } else { $create_password_reset = \DB::table('password_resets')->insert(['email' => $user->email, 'token' => $code, 'created_at' => $date]); } diff --git a/app/Http/Controllers/Client/helpdesk/GuestController.php b/app/Http/Controllers/Client/helpdesk/GuestController.php index 33f0d9eee4..8ac8d71400 100644 --- a/app/Http/Controllers/Client/helpdesk/GuestController.php +++ b/app/Http/Controllers/Client/helpdesk/GuestController.php @@ -125,9 +125,9 @@ public function postProfile(ProfileRequest $request) /** *@category fucntion to check if mobile number is unqique or not * - *@param string $mobile + * @param string $mobile * - *@return bool true(if mobile exists in users table)/false (if mobile does not exist in user table) + * @return bool true(if mobile exists in users table)/false (if mobile does not exist in user table) */ public function checkMobile($mobile) { diff --git a/app/Http/Controllers/Client/helpdesk/UnAuthController.php b/app/Http/Controllers/Client/helpdesk/UnAuthController.php index dd3fd8ed70..ac82e531ac 100755 --- a/app/Http/Controllers/Client/helpdesk/UnAuthController.php +++ b/app/Http/Controllers/Client/helpdesk/UnAuthController.php @@ -327,9 +327,9 @@ public function autoCloseTickets() /** *@category function to change system's language * - *@param string $lang //desired language's iso code + * @param string $lang //desired language's iso code * - *@return response + * @return response */ public static function changeLanguage($lang) { @@ -344,8 +344,8 @@ public static function changeLanguage($lang) // app()->setLocale($lang); \Cache::forever('language', $lang); - // dd(Cache::get('language')); - // dd() + // dd(Cache::get('language')); + // dd() } else { return false; } diff --git a/app/Http/Controllers/Common/PhpMailController.php b/app/Http/Controllers/Common/PhpMailController.php index 7f77d15950..fc72eea753 100644 --- a/app/Http/Controllers/Common/PhpMailController.php +++ b/app/Http/Controllers/Common/PhpMailController.php @@ -17,7 +17,7 @@ class PhpMailController extends Controller { /** - *@var variable to instantiate common mailer class + * @var variable to instantiate common mailer class */ public function __construct() { diff --git a/app/Http/Middleware/RedirectIfAuthenticated.php b/app/Http/Middleware/RedirectIfAuthenticated.php index 539729fc31..5922fce877 100644 --- a/app/Http/Middleware/RedirectIfAuthenticated.php +++ b/app/Http/Middleware/RedirectIfAuthenticated.php @@ -11,9 +11,9 @@ class RedirectIfAuthenticated /** * Handle an incoming request. * - * @param \Illuminate\Http\Request $request - * @param \Closure(\Illuminate\Http\Request): (\Illuminate\Http\Response|\Illuminate\Http\RedirectResponse) $next - * @param string|null ...$guards + * @param \Illuminate\Http\Request $request + * @param \Closure(\Illuminate\Http\Request): (\Illuminate\Http\Response|\Illuminate\Http\RedirectResponse) $next + * @param string|null ...$guards * * @return \Illuminate\Http\Response|\Illuminate\Http\RedirectResponse */ diff --git a/app/Http/Requests/helpdesk/AgentRequest.php b/app/Http/Requests/helpdesk/AgentRequest.php index 2f19c576ce..4c8d62d020 100644 --- a/app/Http/Requests/helpdesk/AgentRequest.php +++ b/app/Http/Requests/helpdesk/AgentRequest.php @@ -53,11 +53,11 @@ public function rules() /** *@category Funcion to set rule if send opt is enabled * - *@param object $settings (instance of Model common settings) + * @param object $settings (instance of Model common settings) * *@author manish.verma@ladybirdweb.com * - *@return array|int + * @return array|int */ public function check($settings) { diff --git a/app/Http/Requests/helpdesk/ClientRequest.php b/app/Http/Requests/helpdesk/ClientRequest.php index 6a7301bd8e..f6de79bfc4 100644 --- a/app/Http/Requests/helpdesk/ClientRequest.php +++ b/app/Http/Requests/helpdesk/ClientRequest.php @@ -119,11 +119,11 @@ public function getChild($fieldid) /** *@category Funcion to set rule if send opt is enabled * - *@param object $settings (instance of Model common settings) + * @param object $settings (instance of Model common settings) * *@author manish.verma@ladybirdweb.com * - *@return array|int + * @return array|int */ public function check($settings) { diff --git a/app/Http/Requests/helpdesk/CreateTicketRequest.php b/app/Http/Requests/helpdesk/CreateTicketRequest.php index 311ce2486c..273f134b59 100644 --- a/app/Http/Requests/helpdesk/CreateTicketRequest.php +++ b/app/Http/Requests/helpdesk/CreateTicketRequest.php @@ -58,11 +58,11 @@ public function rules() /** *@category Funcion to set rule if send opt is enabled * - *@param object $settings (instance of Model common settings) + * @param object $settings (instance of Model common settings) * *@author manish.verma@ladybirdweb.com * - *@return array|int + * @return array|int */ public function check($settings) { @@ -102,7 +102,7 @@ public function check($settings) * *@param null * - *@return array + * @return array */ public function onlyMobleRequired() { diff --git a/app/Http/Requests/helpdesk/ProfileRequest.php b/app/Http/Requests/helpdesk/ProfileRequest.php index 3b995c9066..8dd3d45543 100644 --- a/app/Http/Requests/helpdesk/ProfileRequest.php +++ b/app/Http/Requests/helpdesk/ProfileRequest.php @@ -38,7 +38,7 @@ public function rules() /** *Check the mobile number is unique or not. * - *@return string + * @return string */ public function checkMobile() { diff --git a/app/Http/Requests/helpdesk/RegisterRequest.php b/app/Http/Requests/helpdesk/RegisterRequest.php index 04ecfc11ee..31436b8c4f 100644 --- a/app/Http/Requests/helpdesk/RegisterRequest.php +++ b/app/Http/Requests/helpdesk/RegisterRequest.php @@ -45,11 +45,11 @@ public function rules() /** *@category Funcion to set rule if send opt is enabled * - *@param object $settings (instance of Model common settings) + * @param object $settings (instance of Model common settings) * *@author manish.verma@ladybirdweb.com * - *@return array|int + * @return array|int */ public function check($settings) { diff --git a/app/Http/Requests/helpdesk/Sys_userRequest.php b/app/Http/Requests/helpdesk/Sys_userRequest.php index a8d829a97b..d86b59ef2f 100644 --- a/app/Http/Requests/helpdesk/Sys_userRequest.php +++ b/app/Http/Requests/helpdesk/Sys_userRequest.php @@ -45,11 +45,11 @@ public function rules() /** *@category Funcion to set rule if send opt is enabled * - *@param object $settings (instance of Model common settings) + * @param object $settings (instance of Model common settings) * *@author manish.verma@ladybirdweb.com * - *@return array|int + * @return array|int */ public function check($settings) { @@ -83,7 +83,7 @@ public function check($settings) * *@param null * - *@return array + * @return array */ public function onlyMobleRequired() {