Code Duplication    Length = 3-3 lines in 2 locations

modules/widgets/search.php 2 locations

@@ 424-426 (lines=3) @@
421
422
		$filters = Jetpack_Search::instance()->get_filters();
423
424
		if ( ! Jetpack_Search_Helpers::are_filters_by_widget_disabled() && ! $this->should_display_sitewide_filters() ) {
425
			$filters = array_filter( $filters, array( $this, 'is_for_current_widget' ) );
426
		}
427
428
		$display_filters = ! empty( $filters );
429
@@ 320-322 (lines=3) @@
317
318
			$filters = Jetpack_Search::instance()->get_filters();
319
320
			if ( ! Jetpack_Search_Helpers::are_filters_by_widget_disabled() && ! $this->should_display_sitewide_filters() ) {
321
				$filters = array_filter( $filters, array( $this, 'is_for_current_widget' ) );
322
			}
323
324
			if ( ! empty( $filters ) ) {
325
				$display_filters = true;