Code Duplication    Length = 2-2 lines in 2 locations

class.jetpack-post-images.php 2 locations

@@ 441-442 (lines=2) @@
438
		$media = false;
439
		if ( $args['from_thumbnail'] )
440
			$media = self::from_thumbnail( $post_id, $args['width'], $args['height'] );
441
		if ( !$media && $args['from_slideshow'] )
442
			$media = self::from_slideshow( $post_id, $args['width'], $args['height'] );
443
		if ( !$media && $args['from_gallery'] )
444
			$media = self::from_gallery( $post_id );
445
		if ( !$media && $args['from_attachment'] )
@@ 445-446 (lines=2) @@
442
			$media = self::from_slideshow( $post_id, $args['width'], $args['height'] );
443
		if ( !$media && $args['from_gallery'] )
444
			$media = self::from_gallery( $post_id );
445
		if ( !$media && $args['from_attachment'] )
446
			$media = self::from_attachment( $post_id, $args['width'], $args['height'] );
447
		if ( !$media && $args['from_html'] ) {
448
			if ( empty( $args['html_content'] ) )
449
				$media = self::from_html( $post_id ); // Use the post_id, which will load the content