Code Duplication    Length = 6-6 lines in 2 locations

class.jetpack-post-images.php 2 locations

@@ 654-659 (lines=6) @@
651
		if ( ! $media && $args['from_attachment'] ) {
652
			$media = self::from_attachment( $post_id, $args['width'], $args['height'] );
653
		}
654
		if ( ! $media && $args['from_blocks'] ) {
655
			if ( empty( $args['html_content'] ) ) {
656
				$media = self::from_blocks( $post_id, $args['width'], $args['height'] ); // Use the post_id, which will load the content
657
			} else {
658
				$media = self::from_blocks( $args['html_content'], $args['width'], $args['height'] ); // If html_content is provided, use that
659
			}
660
		}
661
		if ( ! $media && $args['from_html'] ) {
662
			if ( empty( $args['html_content'] ) ) {
@@ 661-666 (lines=6) @@
658
				$media = self::from_blocks( $args['html_content'], $args['width'], $args['height'] ); // If html_content is provided, use that
659
			}
660
		}
661
		if ( ! $media && $args['from_html'] ) {
662
			if ( empty( $args['html_content'] ) ) {
663
				$media = self::from_html( $post_id, $args['width'], $args['height'] ); // Use the post_id, which will load the content
664
			} else {
665
				$media = self::from_html( $args['html_content'], $args['width'], $args['height'] ); // If html_content is provided, use that
666
			}
667
		}
668
669
		if ( ! $media && $args['fallback_to_avatars'] ) {