Code Duplication    Length = 11-12 lines in 2 locations

geodirectory-widgets/geodirectory_bestof_widget.php 1 location

@@ 135-146 (lines=12) @@
132
            }
133
        }
134
135
        if (isset($instance['character_count'])) {
136
			/**
137
			 * Filter the widget's excerpt character count.
138
			 *
139
			 * @since 1.3.9
140
             *
141
			 * @param int $instance['character_count'] Excerpt character count.
142
			 */
143
			$character_count = apply_filters('bestof_widget_list_character_count', $instance['character_count']);
144
        } else {
145
            $character_count = '';
146
        }
147
148
        $category_taxonomy = geodir_get_taxonomies($post_type);
149

geodirectory-functions/general_functions.php 1 location

@@ 3023-3033 (lines=11) @@
3020
    $title = str_replace("%posttype_plural_label%", $posttype_plural_label, $title);
3021
    $title = str_replace("%posttype_singular_label%", $posttype_singular_label, $title);
3022
3023
    if (isset($instance['character_count'])) {
3024
        /**
3025
         * Filter the widget's excerpt character count.
3026
         *
3027
         * @since 1.0.0
3028
         * @param int $instance['character_count'] Excerpt character count.
3029
         */
3030
        $character_count = apply_filters('widget_list_character_count', $instance['character_count']);
3031
    } else {
3032
        $character_count = '';
3033
    }
3034
3035
    if (empty($title) || $title == 'All') {
3036
        $title .= ' ' . __(get_post_type_plural_label($post_type), 'geodirectory');