Code Duplication    Length = 3-3 lines in 4 locations

lib/endpoints/class-wp-rest-revisions-controller.php 4 locations

@@ 359-361 (lines=3) @@
356
357
		$parent_schema = $this->parent_controller->get_item_schema();
358
359
		if ( ! empty( $parent_schema['properties']['title'] ) ) {
360
			$schema['properties']['title'] = $parent_schema['properties']['title'];
361
		}
362
		if ( ! empty( $parent_schema['properties']['content'] ) ) {
363
			$schema['properties']['content'] = $parent_schema['properties']['content'];
364
		}
@@ 362-364 (lines=3) @@
359
		if ( ! empty( $parent_schema['properties']['title'] ) ) {
360
			$schema['properties']['title'] = $parent_schema['properties']['title'];
361
		}
362
		if ( ! empty( $parent_schema['properties']['content'] ) ) {
363
			$schema['properties']['content'] = $parent_schema['properties']['content'];
364
		}
365
		if ( ! empty( $parent_schema['properties']['excerpt'] ) ) {
366
			$schema['properties']['excerpt'] = $parent_schema['properties']['excerpt'];
367
		}
@@ 365-367 (lines=3) @@
362
		if ( ! empty( $parent_schema['properties']['content'] ) ) {
363
			$schema['properties']['content'] = $parent_schema['properties']['content'];
364
		}
365
		if ( ! empty( $parent_schema['properties']['excerpt'] ) ) {
366
			$schema['properties']['excerpt'] = $parent_schema['properties']['excerpt'];
367
		}
368
		if ( ! empty( $parent_schema['properties']['guid'] ) ) {
369
			$schema['properties']['guid'] = $parent_schema['properties']['guid'];
370
		}
@@ 368-370 (lines=3) @@
365
		if ( ! empty( $parent_schema['properties']['excerpt'] ) ) {
366
			$schema['properties']['excerpt'] = $parent_schema['properties']['excerpt'];
367
		}
368
		if ( ! empty( $parent_schema['properties']['guid'] ) ) {
369
			$schema['properties']['guid'] = $parent_schema['properties']['guid'];
370
		}
371
372
		return $this->add_additional_fields_schema( $schema );
373
	}