Code Duplication    Length = 5-5 lines in 2 locations

classes/class-accommodation.php 2 locations

@@ 1011-1015 (lines=5) @@
1008
	 */
1009
	public function set_checkin_checkout($data,$id) {
1010
1011
		if(!empty($data[0]['features']) && isset($data[0]['features']['check_in_time'])){
1012
			$time = str_replace('h',':',$data[0]['features']['check_in_time']);
1013
			$time = date('h:ia',strtotime($time));
1014
			$this->save_custom_field($time,'checkin_time',$id);
1015
		}
1016
		if(!empty($data[0]['features']) && isset($data[0]['features']['check_out_time'])){
1017
			$time = str_replace('h',':',$data[0]['features']['check_out_time']);
1018
			$time = date('h:ia',strtotime($time));
@@ 1016-1020 (lines=5) @@
1013
			$time = date('h:ia',strtotime($time));
1014
			$this->save_custom_field($time,'checkin_time',$id);
1015
		}
1016
		if(!empty($data[0]['features']) && isset($data[0]['features']['check_out_time'])){
1017
			$time = str_replace('h',':',$data[0]['features']['check_out_time']);
1018
			$time = date('h:ia',strtotime($time));
1019
			$this->save_custom_field($time,'checkout_time',$id);
1020
		}
1021
	}	
1022
1023
	/**