Code Duplication    Length = 10-10 lines in 2 locations

modules/likes.php 2 locations

@@ 446-455 (lines=10) @@
443
		if ( ! is_numeric( $post_id ) || ! $this->settings->is_likes_visible() )
444
			return $content;
445
446
		if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) {
447
			$blog_id = get_current_blog_id();
448
			$bloginfo = get_blog_details( (int) $blog_id );
449
			$domain = $bloginfo->domain;
450
		} else {
451
			$blog_id = Jetpack_Options::get_option( 'id' );
452
			$url = home_url();
453
			$url_parts = wp_parse_url( $url );
454
			$domain = $url_parts['host'];
455
		}
456
		// make sure to include the scripts before the iframe otherwise weird things happen
457
		add_action( 'wp_footer', 'jetpack_likes_master_iframe', 21 );
458
@@ 531-540 (lines=10) @@
528
		if ( is_ssl() )
529
			$protocol = 'https';
530
531
		if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) {
532
			$blog_id = get_current_blog_id();
533
			$bloginfo = get_blog_details( (int) $blog_id );
534
			$domain = $bloginfo->domain;
535
		} else {
536
			$blog_id = Jetpack_Options::get_option( 'id' );
537
			$url = home_url();
538
			$url_parts = wp_parse_url( $url );
539
			$domain = $url_parts['host'];
540
		}
541
		// make sure to include the scripts before the iframe otherwise weird things happen
542
		add_action( 'wp_footer', 'jetpack_likes_master_iframe', 21 );
543