Code Duplication    Length = 3-3 lines in 2 locations

projects/plugins/jetpack/modules/widgets/search.php 2 locations

@@ 325-327 (lines=3) @@
322
323
			$filters = Jetpack_Search::instance()->get_filters();
324
325
			if ( ! Jetpack_Search_Helpers::are_filters_by_widget_disabled() && ! $this->should_display_sitewide_filters() ) {
326
				$filters = array_filter( $filters, array( $this, 'is_for_current_widget' ) );
327
			}
328
329
			if ( ! empty( $filters ) ) {
330
				$display_filters = true;
@@ 428-430 (lines=3) @@
425
		}
426
427
		$filters = Jetpack_Search::instance()->get_filters();
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