Apply fixes from StyleCI

This commit is contained in:
Manish Verma
2016-12-31 06:32:24 +00:00
committed by StyleCI Bot
parent 4b871659e1
commit be55ce8abb

View File

@@ -2426,6 +2426,7 @@ class TicketController extends Controller
}
}
$this->sendMergeNotification($p_id, $t_id);
return $success;
}
@@ -2902,7 +2903,9 @@ class TicketController extends Controller
/**
*@category function to send notification of ticket merging to the owners
*
*@param srting array $t_id, $p_id
*
*@return null
*/
public function sendMergeNotification($p_id, $t_id)
@@ -2918,7 +2921,7 @@ class TicketController extends Controller
array_push($child_ticket_numbers, $value->ticket_number);
}
// dd(implode(", ",$child_ticket_numbers), $ticket_details->ticket_number);
$this->PhpMailController->sendmail($from = $this->PhpMailController->mailfrom('0', $ticket_details->dept_id), $to = ['user' => $user_detail->full_name, 'email' => $user_detail->email], $message = ['subject' => '', 'body' => '', 'scenario' => 'merge-ticket-notification',], $template_variables = ['user' => $user_detail->full_name, 'ticket_number' => $ticket_details->ticket_number, 'ticket_link' => route('ticket.thread',$p_id), 'merged_ticket_numbers' => implode(", ",$child_ticket_numbers),]);
$this->PhpMailController->sendmail($from = $this->PhpMailController->mailfrom('0', $ticket_details->dept_id), $to = ['user' => $user_detail->full_name, 'email' => $user_detail->email], $message = ['subject' => '', 'body' => '', 'scenario' => 'merge-ticket-notification'], $template_variables = ['user' => $user_detail->full_name, 'ticket_number' => $ticket_details->ticket_number, 'ticket_link' => route('ticket.thread', $p_id), 'merged_ticket_numbers' => implode(', ', $child_ticket_numbers)]);
}
}
} catch (\Exception $e) {