Code Duplication    Length = 2-2 lines in 2 locations

class.jetpack-post-images.php 2 locations

@@ 615-616 (lines=2) @@
612
		$media = false;
613
		if ( $args['from_thumbnail'] )
614
			$media = self::from_thumbnail( $post_id, $args['width'], $args['height'] );
615
		if ( !$media && $args['from_slideshow'] )
616
			$media = self::from_slideshow( $post_id, $args['width'], $args['height'] );
617
		if ( !$media && $args['from_gallery'] )
618
			$media = self::from_gallery( $post_id );
619
		if ( !$media && $args['from_attachment'] )
@@ 619-620 (lines=2) @@
616
			$media = self::from_slideshow( $post_id, $args['width'], $args['height'] );
617
		if ( !$media && $args['from_gallery'] )
618
			$media = self::from_gallery( $post_id );
619
		if ( !$media && $args['from_attachment'] )
620
			$media = self::from_attachment( $post_id, $args['width'], $args['height'] );
621
		if ( ! $media && $args['from_blocks'] ) {
622
			if ( empty( $args['html_content'] ) )
623
				$media = self::from_blocks( $post_id, $args['width'], $args['height'] ); // Use the post_id, which will load the content