Code Duplication    Length = 7-8 lines in 2 locations

web_interface/astpp/application/modules/accounts/models/accounts_model.php 2 locations

@@ 615-621 (lines=7) @@
612
		return $query;
613
	}
614
615
	function get_account_number($accountid) {
616
		$query = $this->db_model->getSelect("number", "accounts", array("id" => $accountid));
617
		if ($query->num_rows() > 0)
618
			return $query->row_array();
619
		else
620
			return false;
621
	}
622
623
	function add_callerid($data) {
624
		unset($data['action'],$data['flag']);
@@ 697-704 (lines=8) @@
694
			return false;
695
	}
696
697
	function get_currency_by_id($currency_id) {
698
699
		$query = $this->db_model->getSelect("*", 'currency', array('id' => $currency_id));
700
		if ($query->num_rows() > 0)
701
			return $query->row_array();
702
		else
703
			return false;
704
	}
705
706
707
	function update_balance($amount, $accountid, $payment_type) {