Code Duplication    Length = 6-7 lines in 2 locations

geodirectory-functions/general_functions.php 2 locations

@@ 4426-4432 (lines=7) @@
4423
        $title = str_replace("%%location%%",$location,$title);
4424
    }
4425
4426
    if(strpos($title,'%%in_location%%') !== false){
4427
        $location = '';
4428
        if($location_titles) {
4429
            $location = __('in ', 'geodirectory') . implode(", ", $location_titles);
4430
        }
4431
        $title = str_replace("%%in_location%%",$location,$title);
4432
    }
4433
4434
    if(strpos($title,'%%in_location_single%%') !== false){
4435
        if($location_single) {
@@ 4434-4439 (lines=6) @@
4431
        $title = str_replace("%%in_location%%",$location,$title);
4432
    }
4433
4434
    if(strpos($title,'%%in_location_single%%') !== false){
4435
        if($location_single) {
4436
            $location_single = __('in', 'geodirectory') . ' ' .$location_single;
4437
        }
4438
        $title = str_replace("%%in_location_single%%",$location_single,$title);
4439
    }
4440
4441
    if(strpos($title,'%%location_single%%') !== false){
4442
        $title = str_replace("%%location_single%%",$location_single,$title);