Applied fixes from StyleCI
This commit is contained in:

committed by
StyleCI Bot

parent
775e0561d8
commit
30c5a8ec2a
@@ -93,10 +93,7 @@ class FormController extends Controller
|
|||||||
* @return type string
|
* @return type string
|
||||||
*/
|
*/
|
||||||
public function postForm($id, Help_topic $topic)
|
public function postForm($id, Help_topic $topic)
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
if ($id != 0) {
|
if ($id != 0) {
|
||||||
$helptopic = $topic->where('id', '=', $id)->first();
|
$helptopic = $topic->where('id', '=', $id)->first();
|
||||||
$custom_form = $helptopic->custom_form;
|
$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)
|
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');
|
$form_extras = $request->except('Name', 'Phone', 'Email', 'Subject', 'Details', 'helptopic', '_wysihtml5_mode', '_token', 'mobile', 'Code');
|
||||||
$name = $request->input('Name');
|
$name = $request->input('Name');
|
||||||
$phone = $request->input('Phone');
|
$phone = $request->input('Phone');
|
||||||
@@ -186,10 +182,8 @@ class FormController extends Controller
|
|||||||
$user_priority = CommonSettings::where('id', '=', 6)->first();
|
$user_priority = CommonSettings::where('id', '=', 6)->first();
|
||||||
if (!($request->input('priority'))) {
|
if (!($request->input('priority'))) {
|
||||||
$priority = $default_priority->priority_id;
|
$priority = $default_priority->priority_id;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
$priority = $request->input('priority');
|
$priority = $request->input('priority');
|
||||||
|
|
||||||
}
|
}
|
||||||
$source = $ticket_source->where('name', '=', 'web')->first()->id;
|
$source = $ticket_source->where('name', '=', 'web')->first()->id;
|
||||||
$attachments = $request->file('attachment');
|
$attachments = $request->file('attachment');
|
||||||
|
@@ -278,7 +278,7 @@ class DatabaseSeeder extends Seeder
|
|||||||
Company::create(['id' => '1']);
|
Company::create(['id' => '1']);
|
||||||
Email::create(['id' => '1', 'template' => 'default', 'email_fetching' => '1', 'notification_cron' => '1', 'all_emails' => '1', 'email_collaborator' => '1', 'attachment' => '1']);
|
Email::create(['id' => '1', 'template' => 'default', 'email_fetching' => '1', 'notification_cron' => '1', 'all_emails' => '1', 'email_collaborator' => '1', 'attachment' => '1']);
|
||||||
Responder::create(['id' => '1', 'new_ticket' => '1', 'agent_new_ticket' => '1']);
|
Responder::create(['id' => '1', 'new_ticket' => '1', 'agent_new_ticket' => '1']);
|
||||||
System::create(array('id' => '1', 'status' => '1', 'department' => '1', 'date_time_format' => '1', 'time_zone' => '32'));
|
System::create(['id' => '1', 'status' => '1', 'department' => '1', 'date_time_format' => '1', 'time_zone' => '32']);
|
||||||
Ticket::create(['num_format' => '$$$$-####-####', 'num_sequence' => 'sequence', 'collision_avoid' => '2', 'priority' => '1', 'sla' => '2', 'help_topic' => '1', 'status' => '1']);
|
Ticket::create(['num_format' => '$$$$-####-####', 'num_sequence' => 'sequence', 'collision_avoid' => '2', 'priority' => '1', 'sla' => '2', 'help_topic' => '1', 'status' => '1']);
|
||||||
/* Ticket source */
|
/* Ticket source */
|
||||||
Ticket_source::create(['name' => 'web', 'value' => 'Web']);
|
Ticket_source::create(['name' => 'web', 'value' => 'Web']);
|
||||||
|
Reference in New Issue
Block a user