Code Duplication    Length = 11-12 lines in 2 locations

geodirectory-widgets/geodirectory_bestof_widget.php 1 location

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

geodirectory-functions/general_functions.php 1 location

@@ 3615-3625 (lines=11) @@
3612
	$title = str_replace( "%posttype_plural_label%", $posttype_plural_label, $title );
3613
	$title = str_replace( "%posttype_singular_label%", $posttype_singular_label, $title );
3614
3615
	if ( isset( $instance['character_count'] ) ) {
3616
		/**
3617
		 * Filter the widget's excerpt character count.
3618
		 *
3619
		 * @since 1.0.0
3620
		 *
3621
		 * @param int $instance ['character_count'] Excerpt character count.
3622
		 */
3623
		$character_count = apply_filters( 'widget_list_character_count', $instance['character_count'] );
3624
	} else {
3625
		$character_count = '';
3626
	}
3627
3628
	if ( empty( $title ) || $title == 'All' ) {