Code Duplication    Length = 3-3 lines in 2 locations

includes/abstracts/abstract-wc-rest-terms-controller.php 2 locations

@@ 358-360 (lines=3) @@
355
		$args     = array();
356
		$schema   = $this->get_item_schema();
357
358
		if ( ! empty( $schema['properties']['description'] ) && isset( $request['description'] ) ) {
359
			$args['description'] = $request['description'];
360
		}
361
		if ( isset( $request['slug'] ) ) {
362
			$args['slug'] = $request['slug'];
363
		}
@@ 460-462 (lines=3) @@
457
		if ( isset( $request['name'] ) ) {
458
			$prepared_args['name'] = $request['name'];
459
		}
460
		if ( ! empty( $schema['properties']['description'] ) && isset( $request['description'] ) ) {
461
			$prepared_args['description'] = $request['description'];
462
		}
463
		if ( isset( $request['slug'] ) ) {
464
			$prepared_args['slug'] = $request['slug'];
465
		}