Code Duplication    Length = 3-3 lines in 2 locations

lib/endpoints/class-wp-rest-posts-controller.php 2 locations

@@ 348-350 (lines=3) @@
345
			}
346
		}
347
348
		if ( ! empty( $schema['properties']['featured_media'] ) && isset( $request['featured_media'] ) ) {
349
			$this->handle_featured_media( $request['featured_media'], $post->ID );
350
		}
351
352
		if ( ! empty( $schema['properties']['format'] ) && ! empty( $request['format'] ) ) {
353
			set_post_format( $post, $request['format'] );
@@ 453-455 (lines=3) @@
450
			set_post_format( $post, $request['format'] );
451
		}
452
453
		if ( ! empty( $schema['properties']['featured_media'] ) && isset( $request['featured_media'] ) ) {
454
			$this->handle_featured_media( $request['featured_media'], $post_id );
455
		}
456
457
		if ( ! empty( $schema['properties']['sticky'] ) && isset( $request['sticky'] ) ) {
458
			if ( ! empty( $request['sticky'] ) ) {