Apply fixes from StyleCI
This commit is contained in:
@@ -174,8 +174,8 @@ class TokenAuthController extends Controller
|
|||||||
$password_reset_table = \DB::table('password_resets')->where('email', '=', $user->email)->first();
|
$password_reset_table = \DB::table('password_resets')->where('email', '=', $user->email)->first();
|
||||||
if (isset($password_reset_table)) {
|
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 = \DB::table('password_resets')->where('email', '=', $user->email)->update(['token' => $code, 'created_at' => $date]);
|
||||||
// $password_reset_table->token = $code;
|
// $password_reset_table->token = $code;
|
||||||
// $password_reset_table->update(['token' => $code]);
|
// $password_reset_table->update(['token' => $code]);
|
||||||
} else {
|
} else {
|
||||||
$create_password_reset = \DB::table('password_resets')->insert(['email' => $user->email, 'token' => $code, 'created_at' => $date]);
|
$create_password_reset = \DB::table('password_resets')->insert(['email' => $user->email, 'token' => $code, 'created_at' => $date]);
|
||||||
}
|
}
|
||||||
|
@@ -59,7 +59,7 @@ class Handler extends ExceptionHandler
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $request
|
* @param $request
|
||||||
* @param \Throwable $e
|
* @param \Throwable $e
|
||||||
*
|
*
|
||||||
* @throws \Throwable
|
* @throws \Throwable
|
||||||
|
@@ -22,7 +22,7 @@ class Finder
|
|||||||
* DEPARTMENT
|
* DEPARTMENT
|
||||||
* This function is used for returning department name with respect to id.
|
* 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
|
* @param $custom type array/null
|
||||||
*
|
*
|
||||||
* @return type string
|
* @return type string
|
||||||
@@ -42,7 +42,7 @@ class Finder
|
|||||||
* GROUP
|
* GROUP
|
||||||
* This function is used for returning group name with respect to id.
|
* 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
|
* @param $custom type array/null
|
||||||
*
|
*
|
||||||
* @return type string
|
* @return type string
|
||||||
@@ -62,7 +62,7 @@ class Finder
|
|||||||
* STATUS TYPE
|
* STATUS TYPE
|
||||||
* This function is used for returning status type name with respect to id.
|
* 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
|
* @param $custom type array/null
|
||||||
*
|
*
|
||||||
* @return type string
|
* @return type string
|
||||||
@@ -82,7 +82,7 @@ class Finder
|
|||||||
* STATUS
|
* STATUS
|
||||||
* This function is used for returning status name with respect to id.
|
* 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
|
* @param $custom type array/null
|
||||||
*
|
*
|
||||||
* @return type string
|
* @return type string
|
||||||
|
@@ -63,7 +63,7 @@ class SettingsController extends Controller
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @param $compant instance of company table
|
* @param $compant instance of company table
|
||||||
*
|
*
|
||||||
* get the form for company setting page
|
* get the form for company setting page
|
||||||
*
|
*
|
||||||
@@ -118,7 +118,7 @@ class SettingsController extends Controller
|
|||||||
/**
|
/**
|
||||||
* function to delete system logo.
|
* function to delete system logo.
|
||||||
*
|
*
|
||||||
* @return type string
|
* @return type string
|
||||||
*/
|
*/
|
||||||
public function deleteLogo()
|
public function deleteLogo()
|
||||||
{
|
{
|
||||||
@@ -583,7 +583,7 @@ class SettingsController extends Controller
|
|||||||
/**
|
/**
|
||||||
* Generate Api key.
|
* Generate Api key.
|
||||||
*
|
*
|
||||||
* @return type json
|
* @return type json
|
||||||
*/
|
*/
|
||||||
public function generateApiKey()
|
public function generateApiKey()
|
||||||
{
|
{
|
||||||
@@ -604,7 +604,7 @@ class SettingsController extends Controller
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @param $compant instance of company table
|
* @param $compant instance of company table
|
||||||
*
|
*
|
||||||
* get the form for company setting page
|
* get the form for company setting page
|
||||||
*
|
*
|
||||||
@@ -624,7 +624,7 @@ class SettingsController extends Controller
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @param $compant instance of company table
|
* @param $compant instance of company table
|
||||||
*
|
*
|
||||||
* get the form for company setting page
|
* get the form for company setting page
|
||||||
*
|
*
|
||||||
@@ -644,7 +644,7 @@ class SettingsController extends Controller
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @param $compant instance of company table
|
* @param $compant instance of company table
|
||||||
*
|
*
|
||||||
* get the form for company setting page
|
* get the form for company setting page
|
||||||
*
|
*
|
||||||
@@ -780,7 +780,7 @@ class SettingsController extends Controller
|
|||||||
/**
|
/**
|
||||||
* To display the list of ratings in the system.
|
* To display the list of ratings in the system.
|
||||||
*
|
*
|
||||||
* @return type View
|
* @return type View
|
||||||
*/
|
*/
|
||||||
public function RatingSettings()
|
public function RatingSettings()
|
||||||
{
|
{
|
||||||
@@ -814,7 +814,7 @@ class SettingsController extends Controller
|
|||||||
/**
|
/**
|
||||||
* To store rating data.
|
* To store rating data.
|
||||||
*
|
*
|
||||||
* @return type Redirect
|
* @return type Redirect
|
||||||
*/
|
*/
|
||||||
public function PostRatingSettings($id, Rating $ratings, RatingUpdateRequest $request)
|
public function PostRatingSettings($id, Rating $ratings, RatingUpdateRequest $request)
|
||||||
{
|
{
|
||||||
@@ -875,7 +875,7 @@ class SettingsController extends Controller
|
|||||||
/**
|
/**
|
||||||
* To delete a type of rating.
|
* To delete a type of rating.
|
||||||
*
|
*
|
||||||
* @return type Redirect
|
* @return type Redirect
|
||||||
*/
|
*/
|
||||||
public function RatingDelete($slug, \App\Model\helpdesk\Ratings\RatingRef $ratingrefs)
|
public function RatingDelete($slug, \App\Model\helpdesk\Ratings\RatingRef $ratingrefs)
|
||||||
{
|
{
|
||||||
|
@@ -98,7 +98,7 @@ class SettingsController2 extends Controller
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @param $compant instance of company table
|
* @param $compant instance of company table
|
||||||
*
|
*
|
||||||
* get the form for company setting page
|
* get the form for company setting page
|
||||||
*
|
*
|
||||||
@@ -118,7 +118,7 @@ class SettingsController2 extends Controller
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @param $compant instance of company table
|
* @param $compant instance of company table
|
||||||
*
|
*
|
||||||
* get the form for company setting page
|
* get the form for company setting page
|
||||||
*
|
*
|
||||||
@@ -189,7 +189,7 @@ class SettingsController2 extends Controller
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @param $compant instance of company table
|
* @param $compant instance of company table
|
||||||
*
|
*
|
||||||
* get the form for company setting page
|
* get the form for company setting page
|
||||||
*
|
*
|
||||||
@@ -244,7 +244,7 @@ class SettingsController2 extends Controller
|
|||||||
/**
|
/**
|
||||||
* function to delete system logo.
|
* function to delete system logo.
|
||||||
*
|
*
|
||||||
* @return type string
|
* @return type string
|
||||||
*/
|
*/
|
||||||
public function deleteLogo()
|
public function deleteLogo()
|
||||||
{
|
{
|
||||||
@@ -684,7 +684,7 @@ class SettingsController2 extends Controller
|
|||||||
/**
|
/**
|
||||||
* To display the list of ratings in the system.
|
* To display the list of ratings in the system.
|
||||||
*
|
*
|
||||||
* @return type View
|
* @return type View
|
||||||
*/
|
*/
|
||||||
public function RatingSettings()
|
public function RatingSettings()
|
||||||
{
|
{
|
||||||
@@ -696,7 +696,7 @@ class SettingsController2 extends Controller
|
|||||||
/**
|
/**
|
||||||
* To store rating data.
|
* To store rating data.
|
||||||
*
|
*
|
||||||
* @return type Redirect
|
* @return type Redirect
|
||||||
*/
|
*/
|
||||||
public function PostRatingSettings($slug)
|
public function PostRatingSettings($slug)
|
||||||
{
|
{
|
||||||
@@ -721,7 +721,7 @@ class SettingsController2 extends Controller
|
|||||||
/**
|
/**
|
||||||
* To delete a type of rating.
|
* To delete a type of rating.
|
||||||
*
|
*
|
||||||
* @return type Redirect
|
* @return type Redirect
|
||||||
*/
|
*/
|
||||||
public function RatingDelete($slug)
|
public function RatingDelete($slug)
|
||||||
{
|
{
|
||||||
@@ -733,7 +733,7 @@ class SettingsController2 extends Controller
|
|||||||
/**
|
/**
|
||||||
* Generate Api key.
|
* Generate Api key.
|
||||||
*
|
*
|
||||||
* @return type json
|
* @return type json
|
||||||
*/
|
*/
|
||||||
public function generateApiKey()
|
public function generateApiKey()
|
||||||
{
|
{
|
||||||
|
@@ -315,9 +315,9 @@ class FilterControllerOld extends Controller
|
|||||||
/**
|
/**
|
||||||
*@category function to format and return user tickets
|
*@category function to format and return user tickets
|
||||||
*
|
*
|
||||||
*@param string $segment
|
* @param string $segment
|
||||||
*
|
*
|
||||||
*@return builder
|
* @return builder
|
||||||
*/
|
*/
|
||||||
public function formatUserTickets($segment)
|
public function formatUserTickets($segment)
|
||||||
{
|
{
|
||||||
|
@@ -72,7 +72,7 @@ class NotificationController extends Controller
|
|||||||
*
|
*
|
||||||
* @param company
|
* @param company
|
||||||
*
|
*
|
||||||
* @return mail
|
* @return mail
|
||||||
* */
|
* */
|
||||||
public function send_notification_to_admin($company)
|
public function send_notification_to_admin($company)
|
||||||
{
|
{
|
||||||
@@ -102,7 +102,7 @@ class NotificationController extends Controller
|
|||||||
/**
|
/**
|
||||||
* Department Manager Notification/Report.
|
* Department Manager Notification/Report.
|
||||||
*
|
*
|
||||||
* @return mail
|
* @return mail
|
||||||
* */
|
* */
|
||||||
public function send_notification_to_manager($company)
|
public function send_notification_to_manager($company)
|
||||||
{
|
{
|
||||||
@@ -138,7 +138,7 @@ class NotificationController extends Controller
|
|||||||
/**
|
/**
|
||||||
* Team Lead Notification/Report.
|
* Team Lead Notification/Report.
|
||||||
*
|
*
|
||||||
* @return mail
|
* @return mail
|
||||||
* */
|
* */
|
||||||
public function send_notification_to_team_lead($company)
|
public function send_notification_to_team_lead($company)
|
||||||
{
|
{
|
||||||
@@ -174,7 +174,7 @@ class NotificationController extends Controller
|
|||||||
/**
|
/**
|
||||||
* Agent Notification/Report.
|
* Agent Notification/Report.
|
||||||
*
|
*
|
||||||
* @return mail
|
* @return mail
|
||||||
* */
|
* */
|
||||||
public function send_notification_to_agent($company)
|
public function send_notification_to_agent($company)
|
||||||
{
|
{
|
||||||
|
@@ -2321,7 +2321,7 @@ class TicketController extends Controller
|
|||||||
*
|
*
|
||||||
*@param null
|
*@param null
|
||||||
*
|
*
|
||||||
*@return string //script to load tooltip data
|
* @return string //script to load tooltip data
|
||||||
*/
|
*/
|
||||||
public static function tooltip($ticketid)
|
public static function tooltip($ticketid)
|
||||||
{
|
{
|
||||||
@@ -2672,7 +2672,7 @@ class TicketController extends Controller
|
|||||||
*
|
*
|
||||||
*@param srting array $t_id, $p_id
|
*@param srting array $t_id, $p_id
|
||||||
*
|
*
|
||||||
*@return null
|
* @return null
|
||||||
*/
|
*/
|
||||||
public function sendMergeNotification($p_id, $t_id)
|
public function sendMergeNotification($p_id, $t_id)
|
||||||
{
|
{
|
||||||
|
@@ -58,8 +58,8 @@ class ForgotPasswordController extends Controller
|
|||||||
$password_reset_table = DB::table('password_resets')->where('email', '=', $user->email)->first();
|
$password_reset_table = DB::table('password_resets')->where('email', '=', $user->email)->first();
|
||||||
if (isset($password_reset_table)) {
|
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 = DB::table('password_resets')->where('email', '=', $user->email)->update(['token' => $code, 'created_at' => $date]);
|
||||||
// $password_reset_table->token = $code;
|
// $password_reset_table->token = $code;
|
||||||
// $password_reset_table->update(['token' => $code]);
|
// $password_reset_table->update(['token' => $code]);
|
||||||
} else {
|
} else {
|
||||||
$create_password_reset = DB::table('password_resets')->insert(['email' => $user->email, 'token' => $code, 'created_at' => $date]);
|
$create_password_reset = DB::table('password_resets')->insert(['email' => $user->email, 'token' => $code, 'created_at' => $date]);
|
||||||
}
|
}
|
||||||
|
@@ -63,8 +63,8 @@ class PasswordController extends Controller
|
|||||||
$password_reset_table = \DB::table('password_resets')->where('email', '=', $user->email)->first();
|
$password_reset_table = \DB::table('password_resets')->where('email', '=', $user->email)->first();
|
||||||
if (isset($password_reset_table)) {
|
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 = \DB::table('password_resets')->where('email', '=', $user->email)->update(['token' => $code, 'created_at' => $date]);
|
||||||
// $password_reset_table->token = $code;
|
// $password_reset_table->token = $code;
|
||||||
// $password_reset_table->update(['token' => $code]);
|
// $password_reset_table->update(['token' => $code]);
|
||||||
} else {
|
} else {
|
||||||
$create_password_reset = \DB::table('password_resets')->insert(['email' => $user->email, 'token' => $code, 'created_at' => $date]);
|
$create_password_reset = \DB::table('password_resets')->insert(['email' => $user->email, 'token' => $code, 'created_at' => $date]);
|
||||||
}
|
}
|
||||||
|
@@ -125,9 +125,9 @@ class GuestController extends Controller
|
|||||||
/**
|
/**
|
||||||
*@category fucntion to check if mobile number is unqique or not
|
*@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)
|
public function checkMobile($mobile)
|
||||||
{
|
{
|
||||||
|
@@ -327,9 +327,9 @@ class UnAuthController extends Controller
|
|||||||
/**
|
/**
|
||||||
*@category function to change system's language
|
*@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)
|
public static function changeLanguage($lang)
|
||||||
{
|
{
|
||||||
@@ -344,8 +344,8 @@ class UnAuthController extends Controller
|
|||||||
// app()->setLocale($lang);
|
// app()->setLocale($lang);
|
||||||
|
|
||||||
\Cache::forever('language', $lang);
|
\Cache::forever('language', $lang);
|
||||||
// dd(Cache::get('language'));
|
// dd(Cache::get('language'));
|
||||||
// dd()
|
// dd()
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@@ -17,7 +17,7 @@ use Mail;
|
|||||||
class PhpMailController extends Controller
|
class PhpMailController extends Controller
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
*@var variable to instantiate common mailer class
|
* @var variable to instantiate common mailer class
|
||||||
*/
|
*/
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
|
@@ -11,9 +11,9 @@ class RedirectIfAuthenticated
|
|||||||
/**
|
/**
|
||||||
* Handle an incoming request.
|
* Handle an incoming request.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @param \Closure(\Illuminate\Http\Request): (\Illuminate\Http\Response|\Illuminate\Http\RedirectResponse) $next
|
* @param \Closure(\Illuminate\Http\Request): (\Illuminate\Http\Response|\Illuminate\Http\RedirectResponse) $next
|
||||||
* @param string|null ...$guards
|
* @param string|null ...$guards
|
||||||
*
|
*
|
||||||
* @return \Illuminate\Http\Response|\Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\Response|\Illuminate\Http\RedirectResponse
|
||||||
*/
|
*/
|
||||||
|
@@ -53,11 +53,11 @@ class AgentRequest extends Request
|
|||||||
/**
|
/**
|
||||||
*@category Funcion to set rule if send opt is enabled
|
*@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
|
*@author manish.verma@ladybirdweb.com
|
||||||
*
|
*
|
||||||
*@return array|int
|
* @return array|int
|
||||||
*/
|
*/
|
||||||
public function check($settings)
|
public function check($settings)
|
||||||
{
|
{
|
||||||
|
@@ -119,11 +119,11 @@ class ClientRequest extends Request
|
|||||||
/**
|
/**
|
||||||
*@category Funcion to set rule if send opt is enabled
|
*@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
|
*@author manish.verma@ladybirdweb.com
|
||||||
*
|
*
|
||||||
*@return array|int
|
* @return array|int
|
||||||
*/
|
*/
|
||||||
public function check($settings)
|
public function check($settings)
|
||||||
{
|
{
|
||||||
|
@@ -58,11 +58,11 @@ class CreateTicketRequest extends Request
|
|||||||
/**
|
/**
|
||||||
*@category Funcion to set rule if send opt is enabled
|
*@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
|
*@author manish.verma@ladybirdweb.com
|
||||||
*
|
*
|
||||||
*@return array|int
|
* @return array|int
|
||||||
*/
|
*/
|
||||||
public function check($settings)
|
public function check($settings)
|
||||||
{
|
{
|
||||||
@@ -102,7 +102,7 @@ class CreateTicketRequest extends Request
|
|||||||
*
|
*
|
||||||
*@param null
|
*@param null
|
||||||
*
|
*
|
||||||
*@return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function onlyMobleRequired()
|
public function onlyMobleRequired()
|
||||||
{
|
{
|
||||||
|
@@ -38,7 +38,7 @@ class ProfileRequest extends Request
|
|||||||
/**
|
/**
|
||||||
*Check the mobile number is unique or not.
|
*Check the mobile number is unique or not.
|
||||||
*
|
*
|
||||||
*@return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function checkMobile()
|
public function checkMobile()
|
||||||
{
|
{
|
||||||
|
@@ -45,11 +45,11 @@ class RegisterRequest extends Request
|
|||||||
/**
|
/**
|
||||||
*@category Funcion to set rule if send opt is enabled
|
*@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
|
*@author manish.verma@ladybirdweb.com
|
||||||
*
|
*
|
||||||
*@return array|int
|
* @return array|int
|
||||||
*/
|
*/
|
||||||
public function check($settings)
|
public function check($settings)
|
||||||
{
|
{
|
||||||
|
@@ -45,11 +45,11 @@ class Sys_userRequest extends Request
|
|||||||
/**
|
/**
|
||||||
*@category Funcion to set rule if send opt is enabled
|
*@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
|
*@author manish.verma@ladybirdweb.com
|
||||||
*
|
*
|
||||||
*@return array|int
|
* @return array|int
|
||||||
*/
|
*/
|
||||||
public function check($settings)
|
public function check($settings)
|
||||||
{
|
{
|
||||||
@@ -83,7 +83,7 @@ class Sys_userRequest extends Request
|
|||||||
*
|
*
|
||||||
*@param null
|
*@param null
|
||||||
*
|
*
|
||||||
*@return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function onlyMobleRequired()
|
public function onlyMobleRequired()
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user