Code Duplication    Length = 3-3 lines in 2 locations

modules/widgets/search.php 2 locations

@@ 312-314 (lines=3) @@
309
310
			$filters = Jetpack_Search::instance()->get_filters();
311
312
			if ( ! Jetpack_Search_Helpers::are_filters_by_widget_disabled() && ! $this->should_display_sitewide_filters() ) {
313
				$filters = array_filter( $filters, array( $this, 'is_for_current_widget' ) );
314
			}
315
316
			if ( ! empty( $filters ) ) {
317
				$display_filters = true;
@@ 420-422 (lines=3) @@
417
418
		$filters = Jetpack_Search::instance()->get_filters();
419
420
		if ( ! Jetpack_Search_Helpers::are_filters_by_widget_disabled() && ! $this->should_display_sitewide_filters() ) {
421
			$filters = array_filter( $filters, array( $this, 'is_for_current_widget' ) );
422
		}
423
424
		$display_filters = ! empty( $filters );
425