Code Duplication    Length = 10-10 lines in 2 locations

modules/likes.php 2 locations

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