Applied fixes from StyleCI
This commit is contained in:

committed by
StyleCI Bot

parent
775e0561d8
commit
30c5a8ec2a
@@ -77,7 +77,7 @@ class EmailsController extends Controller
|
||||
// fetch all the helptopics from the helptopic table
|
||||
$helps = $help->get();
|
||||
// fetch all the types of active priority from the ticket_priority table
|
||||
$priority = $ticket_priority->where('status','=',1)->get();
|
||||
$priority = $ticket_priority->where('status', '=', 1)->get();
|
||||
// fetch all the types of mailbox protocols from the mailbox_protocols table
|
||||
$mailbox_protocols = $mailbox_protocol->get();
|
||||
|
||||
@@ -320,7 +320,7 @@ class EmailsController extends Controller
|
||||
// get all the helptopic
|
||||
$helps = $help->get();
|
||||
// get all active the priority
|
||||
$priority = $ticket_priority->where('status','=',1)->get();
|
||||
$priority = $ticket_priority->where('status', '=', 1)->get();
|
||||
// get all the mailbox protocols
|
||||
$mailbox_protocols = $mailbox_protocol->get();
|
||||
|
||||
|
@@ -93,10 +93,7 @@ class FormController extends Controller
|
||||
* @return type string
|
||||
*/
|
||||
public function postForm($id, Help_topic $topic)
|
||||
|
||||
|
||||
{
|
||||
|
||||
if ($id != 0) {
|
||||
$helptopic = $topic->where('id', '=', $id)->first();
|
||||
$custom_form = $helptopic->custom_form;
|
||||
@@ -149,7 +146,6 @@ class FormController extends Controller
|
||||
*/
|
||||
public function postedForm(User $user, ClientRequest $request, Ticket $ticket_settings, Ticket_source $ticket_source, Ticket_attachments $ta, CountryCode $code)
|
||||
{
|
||||
|
||||
$form_extras = $request->except('Name', 'Phone', 'Email', 'Subject', 'Details', 'helptopic', '_wysihtml5_mode', '_token', 'mobile', 'Code');
|
||||
$name = $request->input('Name');
|
||||
$phone = $request->input('Phone');
|
||||
@@ -186,10 +182,8 @@ class FormController extends Controller
|
||||
$user_priority = CommonSettings::where('id', '=', 6)->first();
|
||||
if (!($request->input('priority'))) {
|
||||
$priority = $default_priority->priority_id;
|
||||
|
||||
} else {
|
||||
$priority = $request->input('priority');
|
||||
|
||||
}
|
||||
$source = $ticket_source->where('name', '=', 'web')->first()->id;
|
||||
$attachments = $request->file('attachment');
|
||||
|
Reference in New Issue
Block a user