Code Duplication    Length = 9-9 lines in 3 locations

classes/class-accommodation.php 1 location

@@ 510-518 (lines=9) @@
507
			}
508
509
            $jdata=file_get_contents($this->url."/Get?ids=".$wetu_id);
510
            if($jdata)
511
            {
512
                $adata=json_decode($jdata,true);
513
                if(!empty($adata))
514
                {
515
                	$return = $this->import_row($adata,$wetu_id,$post_id,$team_members,$content,$safari_brands);
516
                	$this->format_completed_row($return);
517
                }
518
            }
519
520
			die();
521
		}

classes/class-destination.php 1 location

@@ 420-428 (lines=9) @@
417
			}
418
419
            $jdata=file_get_contents($this->url."/Get?ids=".$wetu_id);
420
            if($jdata)
421
            {
422
                $adata=json_decode($jdata,true);
423
                if(!empty($adata))
424
                {
425
                	$return = $this->import_row($adata,$wetu_id,$post_id,$team_members,$content,$safari_brands);
426
                	$this->format_completed_row($return);
427
                }
428
            }
429
430
			die();
431
		}

classes/class-tours.php 1 location

@@ 440-448 (lines=9) @@
437
438
            $jdata=file_get_contents("http://wetu.com/API/Itinerary/V7/Get?id=".$wetu_id);
439
440
            if($jdata)
441
            {
442
				$jdata=json_decode($jdata,true);
443
                if(!empty($jdata))
444
                {
445
                	$return = $this->import_row($jdata,$wetu_id,$post_id,$content);
446
                	$this->format_completed_row($return);
447
                }
448
            }
449
			die();
450
		}
451