Code Duplication    Length = 5-5 lines in 2 locations

projects/packages/post-images/src/class-post-images.php 1 location

@@ 270-274 (lines=5) @@
267
			return $images;
268
		}
269
270
		if ( 'attachment' === get_post_type( $post ) && wp_attachment_is_image( $post ) ) {
271
			$thumb = $post_id;
272
		} else {
273
			$thumb = get_post_thumbnail_id( $post );
274
		}
275
276
		if ( $thumb ) {
277
			$meta = wp_get_attachment_metadata( $thumb );

projects/plugins/jetpack/class.jetpack-post-images.php 1 location

@@ 263-267 (lines=5) @@
260
			return $images;
261
		}
262
263
		if ( 'attachment' === get_post_type( $post ) && wp_attachment_is_image( $post ) ) {
264
			$thumb = $post_id;
265
		} else {
266
			$thumb = get_post_thumbnail_id( $post );
267
		}
268
269
		if ( $thumb ) {
270
			$meta = wp_get_attachment_metadata( $thumb );