Code Duplication    Length = 4-4 lines in 2 locations

web_interface/astpp/application/modules/freeswitch/controllers/freeswitch.php 2 locations

@@ 51-54 (lines=4) @@
48
	   {
49
			$data['form'] = $this->form->build_form($this->freeswitch_form->fsdevice_form_fields_for_customer($type), '');
50
			$this->load->view('view_freeswitch_add_edit', $data);
51
		} else {
52
			$data['form'] = $this->form->build_form($this->freeswitch_form->get_freeswith_form_fields(), '');
53
			$this->load->view('view_freeswitch_customer_add_edit', $data);
54
		}        
55
	}
56
	function customer_fssipdevices_add($accountid) {
57
	 $data['username'] = $this->session->userdata('user_name');
@@ 78-81 (lines=4) @@
75
		{
76
			$data['form'] = $this->form->build_form($this->freeswitch_form->get_freeswith_form_fields($edit_id), $account);
77
			$this->load->view('view_freeswitch_add_edit', $data);
78
		}else{
79
		 $data['form'] = $this->form->build_form($this->freeswitch_form->get_freeswith_form_fields($edit_id), $account);
80
		$this->load->view('view_freeswitch_customer_add_edit', $data);
81
		}
82
	}
83
84
	function customer_fssipdevices_edit($edit_id, $accountid) {