Code Duplication    Length = 10-10 lines in 2 locations

modules/likes.php 2 locations

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