Code Duplication    Length = 10-10 lines in 2 locations

modules/likes.php 2 locations

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