Code Duplication    Length = 3-3 lines in 2 locations

modules/widgets/search.php 2 locations

@@ 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;
@@ 428-430 (lines=3) @@
425
426
		$filters = Jetpack_Search::instance()->get_filters();
427
428
		if ( ! Jetpack_Search_Helpers::are_filters_by_widget_disabled() && ! $this->should_display_sitewide_filters() ) {
429
			$filters = array_filter( $filters, array( $this, 'is_for_current_widget' ) );
430
		}
431
432
		$display_filters = ! empty( $filters );
433