Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 287-289 (lines=3) @@
284
		}
285
		$sip_flag = false;
286
		$opensip_flag=false;
287
		if (isset($add_array['sip_device_flag']) && common_model::$global_config['system_config']['opensips']== 0) {
288
			$sip_flag = true;
289
		}
290
		if (isset($add_array['opensips_device_flag']) && common_model::$global_config['system_config']['opensips']== 1) {
291
			$opensip_flag = true;
292
		}
@@ 290-292 (lines=3) @@
287
		if (isset($add_array['sip_device_flag']) && common_model::$global_config['system_config']['opensips']== 0) {
288
			$sip_flag = true;
289
		}
290
		if (isset($add_array['opensips_device_flag']) && common_model::$global_config['system_config']['opensips']== 1) {
291
			$opensip_flag = true;
292
		}
293
		unset(
294
				$add_array['count'],
295
				$add_array['pin'],