Code Duplication    Length = 3-3 lines in 2 locations

modules/sharedaddy/sharing-service.php 2 locations

@@ 576-578 (lines=3) @@
573
	$enqueue = false;
574
	if ( is_singular() && in_array( get_post_type(), $global_options['show'] ) ) {
575
		$enqueue = true;
576
	} elseif ( in_array( 'index', $global_options['show'] ) && ( is_home() || is_front_page() || is_archive() || is_search() || in_array( get_post_type(), $global_options['show'] ) ) ) {
577
		$enqueue = true;
578
	}
579
580
	/**
581
	 * Filter to decide when sharing scripts should be enqueued.
@@ 746-748 (lines=3) @@
743
	if ( ! is_feed() ) {
744
		if ( is_singular() && in_array( get_post_type(), $global['show'], true ) ) {
745
			$show = true;
746
		} elseif ( in_array( 'index', $global['show'], true ) && ( is_home() || is_front_page() || is_archive() || is_search() || in_array( get_post_type(), $global['show'], true ) ) ) {
747
			$show = true;
748
		}
749
	}
750
751
	/**