Code Duplication    Length = 3-3 lines in 2 locations

modules/widgets/search.php 2 locations

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