Code Duplication    Length = 3-3 lines in 2 locations

modules/sharedaddy/sharing-service.php 2 locations

@@ 567-569 (lines=3) @@
564
	$enqueue = false;
565
	if ( is_singular() && in_array( get_post_type(), $global_options['show'] ) ) {
566
		$enqueue = true;
567
	} elseif ( in_array( 'index', $global_options['show'] ) && ( is_home() || is_front_page() || is_archive() || is_search() || in_array( get_post_type(), $global_options['show'] ) ) ) {
568
		$enqueue = true;
569
	}
570
571
	/**
572
	 * Filter to decide when sharing scripts should be enqueued.
@@ 737-739 (lines=3) @@
734
	if ( ! is_feed() ) {
735
		if ( is_singular() && in_array( get_post_type(), $global['show'], true ) ) {
736
			$show = true;
737
		} elseif ( in_array( 'index', $global['show'], true ) && ( is_home() || is_front_page() || is_archive() || is_search() || in_array( get_post_type(), $global['show'], true ) ) ) {
738
			$show = true;
739
		}
740
	}
741
742
	/**