Code Duplication    Length = 11-11 lines in 2 locations

web_interface/astpp/application/modules/accounts/controllers/accounts.php 1 location

@@ 2253-2263 (lines=11) @@
2250
				redirect(base_url() . '/dashboard/');
2251
			}
2252
			$this->load->view('view_reseller_edit_details_own', $data);
2253
		} else {
2254
			$data['page_title'] = 'Edit Reseller';
2255
			$where = array('id' => $account_data["id"]);
2256
			$account = $this->db_model->getSelect("*", "accounts", $where);
2257
			$data["account_data"] = $account->result_array();
2258
			foreach ($account->result_array() as $key => $value) {
2259
				$editable_data = $value;
2260
			}
2261
			$data['form'] = $this->form->build_form($this->accounts_form->get_reseller_own_form_fields(), $editable_data);
2262
			$this->load->view('view_reseller_edit_details_own', $data);
2263
		}
2264
	}
2265
	/**
2266
	 * -------Here we write code for controller accounts functions add_callerid------

web_interface/astpp/application/modules/user/controllers/user.php 1 location

@@ 700-710 (lines=11) @@
697
					$this->session->set_flashdata('astpp_notification', 'Something wrong.Please contact to administrator.');
698
				}
699
			}
700
		} else {
701
			$where = array('id' => $accountinfo["id"]);
702
			$account = $this->db_model->getSelect("*", "accounts", $where);
703
			$data["account_data"] = $account->result_array();
704
705
			foreach ($account->result_array() as $key => $value) {
706
				$editable_data = $value;
707
			}
708
			$editable_data['password'] = $this->common->decode($editable_data['password']);
709
			$data['form'] = $this->form->build_form($this->user_form->get_userprofile_form_fields($editable_data), $editable_data);
710
		}
711
		$this->load->view('view_user_details', $data);
712
	}
713