Code Duplication    Length = 10-10 lines in 2 locations

web_interface/astpp/application/modules/accounts/models/accounts_model.php 1 location

@@ 727-736 (lines=10) @@
724
		return $query;
725
	}
726
727
	function get_animap($flag, $start, $limit, $id) {
728
		$where = array('accountid' => $id);
729
730
		if ($flag) {
731
			$query = $this->db_model->select("*", "ani_map", $where, "number", "DESC", $limit, $start);
732
		} else {
733
			$query = $this->db_model->countQuery("*", "ani_map", $where);
734
		}
735
		return $query;
736
	}
737
738
	function add_animap($data) {
739
		$this->db->insert('ani_map', $data);

web_interface/astpp/application/modules/reports/models/reports_model.php 1 location

@@ 240-249 (lines=10) @@
237
		}
238
		return $query;        
239
	}
240
	function get_customer_refillreport($flag,$accountid,$start = 0, $limit = 0){
241
		$where = array("accountid"=>$accountid);
242
		if ($flag) {
243
			$query = $this->db_model->select("*", "payments", $where, "payment_date", "DESC", $limit, $start);
244
		} else {
245
			$query = $this->db_model->countQuery("*", "payments", $where);
246
		}
247
248
		return $query;
249
	}
250
	/*************************************************************************/
251
}
252