Code Duplication    Length = 10-10 lines in 2 locations

modules/likes.php 2 locations

@@ 378-387 (lines=10) @@
375
		if ( ! is_numeric( $post_id ) || ! $this->settings->is_likes_visible() )
376
			return $content;
377
378
		if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) {
379
			$blog_id = get_current_blog_id();
380
			$bloginfo = get_blog_details( (int) $blog_id );
381
			$domain = $bloginfo->domain;
382
		} else {
383
			$blog_id = Jetpack_Options::get_option( 'id' );
384
			$url = home_url();
385
			$url_parts = parse_url( $url );
386
			$domain = $url_parts['host'];
387
		}
388
		// make sure to include the scripts before the iframe otherwise weird things happen
389
		add_action( 'wp_footer', 'jetpack_likes_master_iframe', 21 );
390
@@ 463-472 (lines=10) @@
460
		if ( is_ssl() )
461
			$protocol = 'https';
462
463
		if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) {
464
			$blog_id = get_current_blog_id();
465
			$bloginfo = get_blog_details( (int) $blog_id );
466
			$domain = $bloginfo->domain;
467
		} else {
468
			$blog_id = Jetpack_Options::get_option( 'id' );
469
			$url = home_url();
470
			$url_parts = parse_url( $url );
471
			$domain = $url_parts['host'];
472
		}
473
		// make sure to include the scripts before the iframe otherwise weird things happen
474
		add_action( 'wp_footer', 'jetpack_likes_master_iframe', 21 );
475