Apply fixes from StyleCI
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user