Code Duplication    Length = 10-10 lines in 2 locations

modules/likes.php 2 locations

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