Code Duplication    Length = 5-5 lines in 2 locations

modules/tiled-gallery/tiled-gallery/tiled-gallery-layout.php 1 location

@@ 65-69 (lines=5) @@
62
63
		$blog_id = (int) get_current_blog_id();
64
65
		if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) {
66
			$likes_blog_id = $blog_id;
67
		} else {
68
			$likes_blog_id = Jetpack_Options::get_option( 'id' );
69
		}
70
71
		if ( class_exists( 'Jetpack_Carousel' ) || in_array( 'carousel', Jetpack::get_active_modules() ) || 'carousel' == $this->link ) {
72
			$extra_data = array( 'blog_id' => $blog_id, 'permalink' => get_permalink( isset( $post->ID ) ? $post->ID : 0 ), 'likes_blog_id' => $likes_blog_id );

modules/carousel/jetpack-carousel.php 1 location

@@ 333-337 (lines=5) @@
330
		if ( isset( $post ) ) {
331
			$blog_id = (int) get_current_blog_id();
332
333
			if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) {
334
				$likes_blog_id = $blog_id;
335
			} else {
336
				$likes_blog_id = Jetpack_Options::get_option( 'id' );
337
			}
338
339
			$extra_data = array(
340
				'data-carousel-extra' => array(