Code Duplication    Length = 3-3 lines in 2 locations

modules/widgets/search.php 2 locations

@@ 338-340 (lines=3) @@
335
336
			$filters = Jetpack_Search::instance()->get_filters();
337
338
			if ( ! Jetpack_Search_Helpers::are_filters_by_widget_disabled() && ! $this->should_display_sitewide_filters() ) {
339
				$filters = array_filter( $filters, array( $this, 'is_for_current_widget' ) );
340
			}
341
342
			if ( ! empty( $filters ) ) {
343
				$display_filters = true;
@@ 441-443 (lines=3) @@
438
		}
439
440
		$filters = Jetpack_Search::instance()->get_filters();
441
		if ( ! Jetpack_Search_Helpers::are_filters_by_widget_disabled() && ! $this->should_display_sitewide_filters() ) {
442
			$filters = array_filter( $filters, array( $this, 'is_for_current_widget' ) );
443
		}
444
445
		$display_filters = ! empty( $filters );
446