Code Duplication    Length = 3-3 lines in 2 locations

includes/api/class-wc-rest-products-controller.php 1 location

@@ 904-906 (lines=3) @@
901
		}
902
903
		// Featured Product.
904
		if ( isset( $request['featured'] ) ) {
905
			update_post_meta( $product->id, '_featured', true === $request['featured'] ? 'yes' : 'no' );
906
		}
907
908
		// Shipping data.
909
		$this->save_product_shipping_data( $product, $request );

includes/cli/class-wc-cli-product.php 1 location

@@ 1115-1117 (lines=3) @@
1112
		}
1113
1114
		// Featured Product
1115
		if ( isset( $data['featured'] ) ) {
1116
			update_post_meta( $product_id, '_featured', ( $this->is_true( $data['featured'] ) ) ? 'yes' : 'no' );
1117
		}
1118
1119
		// Shipping data
1120
		$this->save_product_shipping_data( $product_id, $data );