Code Duplication    Length = 9-9 lines in 3 locations

classes/class-accommodation.php 1 location

@@ 525-533 (lines=9) @@
522
			}
523
524
            $jdata = file_get_contents( $this->url . '/Get?' . $this->url_qs . '&ids=' . $wetu_id );
525
            if($jdata)
526
            {
527
                $adata=json_decode($jdata,true);
528
                if(!empty($adata))
529
                {
530
                	$return = $this->import_row($adata,$wetu_id,$post_id,$team_members,$content,$safari_brands);
531
                	$this->format_completed_row($return);
532
                }
533
            }
534
535
			die();
536
		}

classes/class-destination.php 1 location

@@ 451-459 (lines=9) @@
448
			}
449
450
            $jdata = file_get_contents( $this->url . '/Get?' . $this->url_qs . '&ids=' . $wetu_id );
451
            if($jdata)
452
            {
453
                $adata=json_decode($jdata,true);
454
                if(!empty($adata))
455
                {
456
                	$return = $this->import_row($adata,$wetu_id,$post_id,$team_members,$content,$safari_brands);
457
                	$this->format_completed_row($return);
458
                }
459
            }
460
461
			die();
462
		}

classes/class-tours.php 1 location

@@ 472-480 (lines=9) @@
469
470
            $jdata=file_get_contents("http://wetu.com/API/Itinerary/V7/Get?id=".$wetu_id);
471
472
            if($jdata)
473
            {
474
				$jdata=json_decode($jdata,true);
475
                if(!empty($jdata))
476
                {
477
                	$return = $this->import_row($jdata,$wetu_id,$post_id,$content);
478
                	$this->format_completed_row($return);
479
                }
480
            }
481
			die();
482
		}
483