Code Duplication    Length = 3-3 lines in 4 locations

includes/admin/meta-boxes/class-wc-meta-box-product-data.php 4 locations

@@ 1363-1365 (lines=3) @@
1360
				update_post_meta( $variation_id, '_virtual', wc_clean( $is_virtual ) );
1361
				update_post_meta( $variation_id, '_downloadable', wc_clean( $is_downloadable ) );
1362
1363
				if ( isset( $variable_weight[ $i ] ) ) {
1364
					update_post_meta( $variation_id, '_weight', ( '' === $variable_weight[ $i ] ) ? '' : wc_format_decimal( $variable_weight[ $i ] ) );
1365
				}
1366
1367
				if ( isset( $variable_length[ $i ] ) ) {
1368
					update_post_meta( $variation_id, '_length', ( '' === $variable_length[ $i ] ) ? '' : wc_format_decimal( $variable_length[ $i ] ) );
@@ 1367-1369 (lines=3) @@
1364
					update_post_meta( $variation_id, '_weight', ( '' === $variable_weight[ $i ] ) ? '' : wc_format_decimal( $variable_weight[ $i ] ) );
1365
				}
1366
1367
				if ( isset( $variable_length[ $i ] ) ) {
1368
					update_post_meta( $variation_id, '_length', ( '' === $variable_length[ $i ] ) ? '' : wc_format_decimal( $variable_length[ $i ] ) );
1369
				}
1370
1371
				if ( isset( $variable_width[ $i ] ) ) {
1372
					update_post_meta( $variation_id, '_width', ( '' === $variable_width[ $i ] ) ? '' : wc_format_decimal( $variable_width[ $i ] ) );
@@ 1371-1373 (lines=3) @@
1368
					update_post_meta( $variation_id, '_length', ( '' === $variable_length[ $i ] ) ? '' : wc_format_decimal( $variable_length[ $i ] ) );
1369
				}
1370
1371
				if ( isset( $variable_width[ $i ] ) ) {
1372
					update_post_meta( $variation_id, '_width', ( '' === $variable_width[ $i ] ) ? '' : wc_format_decimal( $variable_width[ $i ] ) );
1373
				}
1374
1375
				if ( isset( $variable_height[ $i ] ) ) {
1376
					update_post_meta( $variation_id, '_height', ( '' === $variable_height[ $i ] ) ? '' : wc_format_decimal( $variable_height[ $i ] ) );
@@ 1375-1377 (lines=3) @@
1372
					update_post_meta( $variation_id, '_width', ( '' === $variable_width[ $i ] ) ? '' : wc_format_decimal( $variable_width[ $i ] ) );
1373
				}
1374
1375
				if ( isset( $variable_height[ $i ] ) ) {
1376
					update_post_meta( $variation_id, '_height', ( '' === $variable_height[ $i ] ) ? '' : wc_format_decimal( $variable_height[ $i ] ) );
1377
				}
1378
1379
				// Stock handling
1380
				update_post_meta( $variation_id, '_manage_stock', $manage_stock );