Code Duplication    Length = 3-3 lines in 2 locations

modules/widgets/search.php 2 locations

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