Apply fixes from StyleCI
This commit is contained in:

committed by
RafficMohammed

parent
ac7fc33df2
commit
e8f61f16d5
@@ -155,6 +155,7 @@ class CannedController extends Controller
|
||||
/* delete the selected field */
|
||||
/* Check whether function success or not */
|
||||
$canned->delete();
|
||||
|
||||
/* redirect to Index page with Success Message */
|
||||
return redirect()->route('canned.list')->with('success', Lang::get('lang.canned_response_deleted'));
|
||||
} catch (Exception $e) {
|
||||
@@ -180,6 +181,7 @@ class CannedController extends Controller
|
||||
} else {
|
||||
$msg = '';
|
||||
}
|
||||
|
||||
// returning the canned response in JSON format
|
||||
return \Response::json($msg);
|
||||
}
|
||||
|
@@ -576,6 +576,7 @@ class FilterController extends Controller
|
||||
$query->whereIn('tickets.team_id', $teams)
|
||||
->orWhereIn('tickets.assigned_to', $users);
|
||||
});
|
||||
|
||||
// dd($table->toSql());
|
||||
return $table;
|
||||
}
|
||||
@@ -899,6 +900,7 @@ class FilterController extends Controller
|
||||
} else {
|
||||
$table = $table->where('tickets.id', '=', null);
|
||||
}
|
||||
|
||||
// dd($table->toSql());
|
||||
return $table;
|
||||
}
|
||||
|
@@ -51,6 +51,7 @@ class FilterControllerOld extends Controller
|
||||
if ((is_array($tags) && count($tags) > 0) || (is_array($labels) && count($labels) > 0)) {
|
||||
$render = true;
|
||||
}
|
||||
|
||||
// return \Datatables::of($table)->make();
|
||||
return \Ttable::getTable($table);
|
||||
}
|
||||
|
@@ -25,6 +25,7 @@ class ImapMail extends Mailbox
|
||||
{
|
||||
//dd($this->getImapStream());
|
||||
$mailsIds = imap_search($this->getImapStream(), $criteria, SE_UID);
|
||||
|
||||
//dd($mailsIds);
|
||||
return $mailsIds ? $mailsIds : [];
|
||||
}
|
||||
|
@@ -178,6 +178,7 @@ class OrganizationController extends Controller
|
||||
try {
|
||||
/* select the field by id */
|
||||
$orgs = $org->whereId($id)->first();
|
||||
|
||||
/* To view page */
|
||||
return view('themes.default1.agent.helpdesk.organization.show', compact('orgs'));
|
||||
} catch (Exception $e) {
|
||||
@@ -198,6 +199,7 @@ class OrganizationController extends Controller
|
||||
try {
|
||||
/* select the field by id */
|
||||
$orgs = $org->whereId($id)->first();
|
||||
|
||||
/* To view page */
|
||||
return view('themes.default1.agent.helpdesk.organization.edit', compact('orgs'));
|
||||
} catch (Exception $e) {
|
||||
@@ -254,6 +256,7 @@ class OrganizationController extends Controller
|
||||
/* Delete the field selected from the table */
|
||||
/* Check whether function success or not */
|
||||
$orgs->delete();
|
||||
|
||||
/* redirect to Index page with Success Message */
|
||||
return redirect('organizations')->with('success', Lang::get('lang.organization_deleted_successfully'));
|
||||
} catch (Exception $e) {
|
||||
|
@@ -501,6 +501,7 @@ class TicketController extends Controller
|
||||
$ticket = Tickets::where('tickets.id', '=', $id)->first();
|
||||
$html = view('themes.default1.agent.helpdesk.ticket.pdf', compact('id', 'ticket', 'tickets'))->render();
|
||||
$html1 = mb_convert_encoding($html, 'HTML-ENTITIES', 'UTF-8');
|
||||
|
||||
/**
|
||||
* This statement throws error with php7.1.
|
||||
*
|
||||
@@ -2457,6 +2458,7 @@ class TicketController extends Controller
|
||||
$ticket = Tickets::where('id', $thread->ticket_id)->first();
|
||||
$html = view('themes.default1.agent.helpdesk.ticket.thread-pdf', compact('thread', 'system', 'company', 'ticket'))->render();
|
||||
$html1 = mb_convert_encoding($html, 'HTML-ENTITIES', 'UTF-8');
|
||||
|
||||
/**
|
||||
* This statement throws error with php7.1.
|
||||
*
|
||||
|
@@ -201,6 +201,7 @@ class TicketWorkflowController extends Controller
|
||||
} elseif ($condition == 'ends') {
|
||||
$return = $this->checkEnds($statement, $to_check);
|
||||
}
|
||||
|
||||
// elseif($condition == 'match') {
|
||||
//
|
||||
// } elseif($condition == 'not_match') {
|
||||
|
@@ -149,6 +149,7 @@ class UserController extends Controller
|
||||
$query->orWhere('country_code', 'LIKE', '%'.$search.'%');
|
||||
});
|
||||
}
|
||||
|
||||
// displaying list of users with chumper datatables
|
||||
// return \Datatable::collection(User::where('role', "!=", "admin")->get())
|
||||
return \Yajra\DataTables\Facades\DataTables::of($users)
|
||||
@@ -338,6 +339,7 @@ class UserController extends Controller
|
||||
|
||||
return redirect('user')->with('success', Lang::get('lang.User-Created-Successfully'));
|
||||
}
|
||||
|
||||
// $user->save();
|
||||
/* redirect to Index page with Success Message */
|
||||
return redirect('user')->with('success', Lang::get('lang.User-Created-Successfully'));
|
||||
@@ -676,6 +678,7 @@ class UserController extends Controller
|
||||
$user = new User();
|
||||
/* select the field where id = $id(request Id) */
|
||||
$users = $user->whereId($id)->first();
|
||||
|
||||
/* Update the value by selected field */
|
||||
/* Check whether function success or not */
|
||||
try {
|
||||
@@ -697,6 +700,7 @@ class UserController extends Controller
|
||||
|
||||
$this->storeUserOrgRelation($id, $orgid);
|
||||
}
|
||||
|
||||
/* redirect to Index page with Success Message */
|
||||
return redirect('user')->with('success', Lang::get('lang.User-profile-Updated-Successfully'));
|
||||
} catch (Exception $e) {
|
||||
@@ -932,6 +936,7 @@ class UserController extends Controller
|
||||
$user_org->org_id = $org->id;
|
||||
$user_org->user_id = $id;
|
||||
$user_org->save();
|
||||
|
||||
// for success return 0
|
||||
return 0;
|
||||
}
|
||||
@@ -956,6 +961,7 @@ class UserController extends Controller
|
||||
for ($i = 0; $i < $length; $i++) {
|
||||
$randomString .= $characters[rand(0, $charactersLength - 1)];
|
||||
}
|
||||
|
||||
// return random string
|
||||
return $randomString;
|
||||
}
|
||||
@@ -1061,6 +1067,7 @@ class UserController extends Controller
|
||||
if (Hash::check(Input::get('otp'), $otp->otp)) {
|
||||
Otp::where('user_id', '=', Input::get('u_id'))
|
||||
->update(['otp' => '']);
|
||||
|
||||
// User::where('id', '=', $user->id)
|
||||
// ->update(['active' => 1]);
|
||||
// $this->openTicketAfterVerification($user->id);
|
||||
|
Reference in New Issue
Block a user