Code Duplication    Length = 5-5 lines in 2 locations

includes/cli/class-wc-cli-product.php 2 locations

@@ 1363-1367 (lines=5) @@
1360
1361
			// Backorders
1362
			if ( isset( $data['backorders'] ) ) {
1363
				if ( 'notify' == $data['backorders'] ) {
1364
					$backorders = 'notify';
1365
				} else {
1366
					$backorders = ( $this->is_true( $data['backorders'] ) ) ? 'yes' : 'no';
1367
				}
1368
1369
				update_post_meta( $product_id, '_backorders', $backorders );
1370
			} else {
@@ 1643-1647 (lines=5) @@
1640
1641
			if ( 'yes' === $managing_stock ) {
1642
				if ( isset( $variation['backorders'] ) ) {
1643
					if ( 'notify' === $variation['backorders'] ) {
1644
						$backorders = 'notify';
1645
					} else {
1646
						$backorders = ( $this->is_true( $variation['backorders'] ) ) ? 'yes' : 'no';
1647
					}
1648
				} else {
1649
					$backorders = 'no';
1650
				}