Apply fixes from StyleCI

This commit is contained in:
Bhanu
2020-12-15 12:00:23 +00:00
committed by Manish Verma
parent 32409edb93
commit 7381486688
5 changed files with 11 additions and 10 deletions

View File

@@ -626,8 +626,7 @@ class TicketController extends Controller
public function create_user($emailadd, $username, $subject, $body, $phone, $phonecode, $mobile_number, $helptopic, $sla, $priority, $source, $headers, $dept, $assignto, $from_data, $auto_response, $status)
{
// define global variables
$email;
$username;
$unique = $emailadd;
if (!$emailadd) {
$unique = $mobile_number;
@@ -1087,6 +1086,7 @@ class TicketController extends Controller
$thread->body = $body;
if ($thread->save()) {
\Event::fire('ticket.details', ['ticket' => $thread]); //get the ticket details
return true;
}
}
@@ -2037,6 +2037,7 @@ class TicketController extends Controller
$ticket->lock_by = Auth::user()->id;
$ticket->lock_at = date('Y-m-d H:i:s');
$ticket->save(); //ticket is available and lock ticket for new user
return 2;
}
}