Code Duplication    Length = 10-10 lines in 2 locations

modules/likes.php 2 locations

@@ 429-438 (lines=10) @@
426
		if ( ! is_numeric( $post_id ) || ! $this->settings->is_likes_visible() )
427
			return $content;
428
429
		if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) {
430
			$blog_id = get_current_blog_id();
431
			$bloginfo = get_blog_details( (int) $blog_id );
432
			$domain = $bloginfo->domain;
433
		} else {
434
			$blog_id = Jetpack_Options::get_option( 'id' );
435
			$url = home_url();
436
			$url_parts = parse_url( $url );
437
			$domain = $url_parts['host'];
438
		}
439
		// make sure to include the scripts before the iframe otherwise weird things happen
440
		add_action( 'wp_footer', 'jetpack_likes_master_iframe', 21 );
441
@@ 514-523 (lines=10) @@
511
		if ( is_ssl() )
512
			$protocol = 'https';
513
514
		if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) {
515
			$blog_id = get_current_blog_id();
516
			$bloginfo = get_blog_details( (int) $blog_id );
517
			$domain = $bloginfo->domain;
518
		} else {
519
			$blog_id = Jetpack_Options::get_option( 'id' );
520
			$url = home_url();
521
			$url_parts = parse_url( $url );
522
			$domain = $url_parts['host'];
523
		}
524
		// make sure to include the scripts before the iframe otherwise weird things happen
525
		add_action( 'wp_footer', 'jetpack_likes_master_iframe', 21 );
526