Code Duplication    Length = 2-2 lines in 2 locations

class.jetpack-post-images.php 2 locations

@@ 474-475 (lines=2) @@
471
		$media = false;
472
		if ( $args['from_thumbnail'] )
473
			$media = self::from_thumbnail( $post_id, $args['width'], $args['height'] );
474
		if ( !$media && $args['from_slideshow'] )
475
			$media = self::from_slideshow( $post_id, $args['width'], $args['height'] );
476
		if ( !$media && $args['from_gallery'] )
477
			$media = self::from_gallery( $post_id );
478
		if ( !$media && $args['from_attachment'] )
@@ 478-479 (lines=2) @@
475
			$media = self::from_slideshow( $post_id, $args['width'], $args['height'] );
476
		if ( !$media && $args['from_gallery'] )
477
			$media = self::from_gallery( $post_id );
478
		if ( !$media && $args['from_attachment'] )
479
			$media = self::from_attachment( $post_id, $args['width'], $args['height'] );
480
		if ( !$media && $args['from_html'] ) {
481
			if ( empty( $args['html_content'] ) )
482
				$media = self::from_html( $post_id ); // Use the post_id, which will load the content