Code Duplication    Length = 10-10 lines in 2 locations

modules/likes.php 2 locations

@@ 391-400 (lines=10) @@
388
		if ( ! is_numeric( $post_id ) || ! $this->settings->is_likes_visible() )
389
			return $content;
390
391
		if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) {
392
			$blog_id = get_current_blog_id();
393
			$bloginfo = get_blog_details( (int) $blog_id );
394
			$domain = $bloginfo->domain;
395
		} else {
396
			$blog_id = Jetpack_Options::get_option( 'id' );
397
			$url = home_url();
398
			$url_parts = parse_url( $url );
399
			$domain = $url_parts['host'];
400
		}
401
		// make sure to include the scripts before the iframe otherwise weird things happen
402
		add_action( 'wp_footer', 'jetpack_likes_master_iframe', 21 );
403
@@ 476-485 (lines=10) @@
473
		if ( is_ssl() )
474
			$protocol = 'https';
475
476
		if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) {
477
			$blog_id = get_current_blog_id();
478
			$bloginfo = get_blog_details( (int) $blog_id );
479
			$domain = $bloginfo->domain;
480
		} else {
481
			$blog_id = Jetpack_Options::get_option( 'id' );
482
			$url = home_url();
483
			$url_parts = parse_url( $url );
484
			$domain = $url_parts['host'];
485
		}
486
		// make sure to include the scripts before the iframe otherwise weird things happen
487
		add_action( 'wp_footer', 'jetpack_likes_master_iframe', 21 );
488