Code Duplication    Length = 10-10 lines in 2 locations

packages/module-likes/legacy/likes.php 2 locations

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