Applied fixes from StyleCI

This commit is contained in:
Manish Verma
2016-11-04 13:03:00 +00:00
committed by StyleCI Bot
parent 775e0561d8
commit 30c5a8ec2a
3 changed files with 4 additions and 10 deletions

View File

@@ -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');