Skip to content

Commit

Permalink
Merge pull request #8223 from ladybirdweb/analysis-neDmWw
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
bhanu2217 authored Sep 13, 2023
2 parents 6bc8802 + 53281e2 commit ab2923a
Show file tree
Hide file tree
Showing 20 changed files with 59 additions and 59 deletions.
4 changes: 2 additions & 2 deletions app/Api/v1/TokenAuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}
Expand Down
2 changes: 1 addition & 1 deletion app/Exceptions/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ protected function invalidJson($request, ValidationException $exception)
}

/**
* @param $request
* @param $request
* @param \Throwable $e
*
* @throws \Throwable
Expand Down
8 changes: 4 additions & 4 deletions app/Helper/Finder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
18 changes: 9 additions & 9 deletions app/Http/Controllers/Admin/helpdesk/SettingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down Expand Up @@ -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()
{
Expand Down Expand Up @@ -583,7 +583,7 @@ public function postalert($id, Alert $alert, Request $request)
/**
* Generate Api key.
*
* @return type json
* @return type json
*/
public function generateApiKey()
{
Expand All @@ -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
*
Expand All @@ -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
*
Expand All @@ -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
*
Expand Down Expand Up @@ -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()
{
Expand Down Expand Up @@ -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)
{
Expand Down Expand Up @@ -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)
{
Expand Down
16 changes: 8 additions & 8 deletions app/Http/Controllers/Admin/helpdesk/SettingsController2.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand All @@ -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
*
Expand Down Expand Up @@ -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
*
Expand Down Expand Up @@ -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()
{
Expand Down Expand Up @@ -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()
{
Expand All @@ -696,7 +696,7 @@ public function RatingSettings()
/**
* To store rating data.
*
* @return type Redirect
* @return type Redirect
*/
public function PostRatingSettings($slug)
{
Expand All @@ -721,7 +721,7 @@ public function createRating()
/**
* To delete a type of rating.
*
* @return type Redirect
* @return type Redirect
*/
public function RatingDelete($slug)
{
Expand All @@ -733,7 +733,7 @@ public function RatingDelete($slug)
/**
* Generate Api key.
*
* @return type json
* @return type json
*/
public function generateApiKey()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function send_notification()
*
* @param company
*
* @return mail
* @return mail
* */
public function send_notification_to_admin($company)
{
Expand Down Expand Up @@ -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)
{
Expand Down Expand Up @@ -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)
{
Expand Down Expand Up @@ -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)
{
Expand Down
4 changes: 2 additions & 2 deletions app/Http/Controllers/Agent/helpdesk/TicketController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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)
{
Expand Down
4 changes: 2 additions & 2 deletions app/Http/Controllers/Auth/ForgotPasswordController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}
Expand Down
4 changes: 2 additions & 2 deletions app/Http/Controllers/Auth/PasswordController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}
Expand Down
4 changes: 2 additions & 2 deletions app/Http/Controllers/Client/helpdesk/GuestController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
8 changes: 4 additions & 4 deletions app/Http/Controllers/Client/helpdesk/UnAuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/Common/PhpMailController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down
6 changes: 3 additions & 3 deletions app/Http/Middleware/RedirectIfAuthenticated.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
4 changes: 2 additions & 2 deletions app/Http/Requests/helpdesk/AgentRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected]
*
*@return array|int
* @return array|int
*/
public function check($settings)
{
Expand Down
4 changes: 2 additions & 2 deletions app/Http/Requests/helpdesk/ClientRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected]
*
*@return array|int
* @return array|int
*/
public function check($settings)
{
Expand Down
Loading

0 comments on commit ab2923a

Please sign in to comment.