Code Duplication    Length = 7-8 lines in 2 locations

geodirectory-functions/general_functions.php 2 locations

@@ 4242-4249 (lines=8) @@
4239
                $single_name = __($geodir_post_types[$spt]['labels']['singular_name'],'geodirectory');
4240
            }
4241
        }
4242
        elseif($post->post_type){
4243
            $geodir_post_types = get_option('geodir_post_types');
4244
            if(isset($geodir_post_types[$post->post_type]['labels']['singular_name'])){
4245
                $single_name = __($geodir_post_types[$post->post_type]['labels']['singular_name'],'geodirectory');
4246
            }
4247
4248
4249
        }
4250
        $title = str_replace("%%pt_single%%",$single_name,$title);
4251
    }
4252
@@ 4269-4275 (lines=7) @@
4266
                $plural_name = __($geodir_post_types[$spt]['labels']['name'],'geodirectory');
4267
            }
4268
        }
4269
        elseif(isset($post->post_type) && $post->post_type){
4270
            $geodir_post_types = get_option('geodir_post_types');
4271
            if(isset($geodir_post_types[$post->post_type]['labels']['name'])){
4272
                $plural_name = __($geodir_post_types[$post->post_type]['labels']['name'],'geodirectory');
4273
            }
4274
4275
        }
4276
        $title = str_replace("%%pt_plural%%",$plural_name,$title);
4277
    }
4278