Code Duplication    Length = 2-2 lines in 2 locations

class.jetpack-post-images.php 2 locations

@@ 516-517 (lines=2) @@
513
		$media = false;
514
		if ( $args['from_thumbnail'] )
515
			$media = self::from_thumbnail( $post_id, $args['width'], $args['height'] );
516
		if ( !$media && $args['from_slideshow'] )
517
			$media = self::from_slideshow( $post_id, $args['width'], $args['height'] );
518
		if ( !$media && $args['from_gallery'] )
519
			$media = self::from_gallery( $post_id );
520
		if ( !$media && $args['from_attachment'] )
@@ 520-521 (lines=2) @@
517
			$media = self::from_slideshow( $post_id, $args['width'], $args['height'] );
518
		if ( !$media && $args['from_gallery'] )
519
			$media = self::from_gallery( $post_id );
520
		if ( !$media && $args['from_attachment'] )
521
			$media = self::from_attachment( $post_id, $args['width'], $args['height'] );
522
		if ( !$media && $args['from_html'] ) {
523
			if ( empty( $args['html_content'] ) )
524
				$media = self::from_html( $post_id ); // Use the post_id, which will load the content