Code Duplication    Length = 3-3 lines in 2 locations

modules/widgets/search.php 2 locations

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