Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 935-943 (lines=9) @@
932
		}
933
	}
934
935
	function customer_add_blockpatterns($accountid) {
936
		$data['username'] = $this->session->userdata('user_name');
937
		$data['page_title'] = 'Unblocked Codes';
938
		$this->session->set_userdata('advance_search', 0);
939
		$this->load->module('rates/rates');
940
		$data['patters_grid_fields'] = $this->rates->rates_form->build_block_pattern_list_for_customer();
941
		$data["accountid"] = $accountid;
942
		$this->load->view('view_block_prefix_list', $data);
943
	}
944
945
	function customer_add_blockpatterns_json($accountid) {
946
		$this->load->module('rates/rates');

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

@@ 274-282 (lines=9) @@
271
		echo json_encode($json_data);
272
	}
273
    
274
	function package_patterns_add($packageid) {
275
		$data['username'] = $this->session->userdata('user_name');
276
		$data['page_title'] = 'Unblocked Prefixes';
277
		$this->session->set_userdata('advance_search', 0);
278
		$this->load->module('rates/rates');
279
		$data['patters_grid_fields'] = $this->rates->rates_form->build_block_pattern_list_for_customer();
280
		$data["packageid"] = $packageid;
281
		$this->load->view('view_prefix_list', $data);
282
	}
283
	function package_patterns_add_json($accountid) {
284
		$this->load->module('rates/rates');
285
		$json_data = array();