Code Duplication    Length = 10-10 lines in 2 locations

projects/plugins/jetpack/modules/likes.php 2 locations

@@ 581-590 (lines=10) @@
578
		if ( is_ssl() ) {
579
			$protocol = 'https';
580
		}
581
		if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) {
582
			$blog_id  = get_current_blog_id();
583
			$bloginfo = get_blog_details( (int) $blog_id );
584
			$domain   = $bloginfo->domain;
585
		} else {
586
			$blog_id   = Jetpack_Options::get_option( 'id' );
587
			$url       = home_url();
588
			$url_parts = wp_parse_url( $url );
589
			$domain    = $url_parts['host'];
590
		}
591
		// Make sure to include the scripts before the iframe otherwise weird things happen.
592
		add_action( 'wp_footer', 'jetpack_likes_master_iframe', 21 );
593
@@ 485-494 (lines=10) @@
482
			return $content;
483
		}
484
485
		if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) {
486
			$blog_id  = get_current_blog_id();
487
			$bloginfo = get_blog_details( (int) $blog_id );
488
			$domain   = $bloginfo->domain;
489
		} else {
490
			$blog_id   = Jetpack_Options::get_option( 'id' );
491
			$url       = home_url();
492
			$url_parts = wp_parse_url( $url );
493
			$domain    = $url_parts['host'];
494
		}
495
		// Make sure to include the scripts before the iframe otherwise weird things happen.
496
		add_action( 'wp_footer', 'jetpack_likes_master_iframe', 21 );
497