Code Duplication    Length = 3-3 lines in 2 locations

projects/plugins/jetpack/modules/sharedaddy/sharing-service.php 2 locations

@@ 578-580 (lines=3) @@
575
	$enqueue = false;
576
	if ( is_singular() && in_array( get_post_type(), $global_options['show'] ) ) {
577
		$enqueue = true;
578
	} elseif ( in_array( 'index', $global_options['show'] ) && ( is_home() || is_front_page() || is_archive() || is_search() || in_array( get_post_type(), $global_options['show'] ) ) ) {
579
		$enqueue = true;
580
	}
581
582
	/**
583
	 * Filter to decide when sharing scripts should be enqueued.
@@ 757-759 (lines=3) @@
754
	if ( ! is_feed() ) {
755
		if ( is_singular() && in_array( get_post_type(), $global['show'], true ) ) {
756
			$show = true;
757
		} elseif ( in_array( 'index', $global['show'], true ) && ( is_home() || is_front_page() || is_archive() || is_search() || in_array( get_post_type(), $global['show'], true ) ) ) {
758
			$show = true;
759
		}
760
	}
761
762
	/**