Code Duplication    Length = 4-4 lines in 2 locations

includes/admin/class-wc-admin-assets.php 2 locations

@@ 165-168 (lines=4) @@
162
		}
163
164
		// Products
165
		if ( in_array( $screen_id, array( 'edit-product' ) ) ) {
166
			wp_register_script( 'woocommerce_quick-edit', WC()->plugin_url() . '/assets/js/admin/quick-edit' . $suffix . '.js', array( 'jquery' ), WC_VERSION );
167
			wp_enqueue_script( 'woocommerce_quick-edit' );
168
		}
169
170
		// Meta boxes
171
		if ( in_array( $screen_id, array( 'product', 'edit-product' ) ) ) {
@@ 226-229 (lines=4) @@
223
224
			wp_localize_script( 'wc-admin-order-meta-boxes', 'woocommerce_admin_meta_boxes_order', $params );
225
		}
226
		if ( in_array( $screen_id, array( 'shop_coupon', 'edit-shop_coupon' ) ) ) {
227
			wp_register_script( 'wc-admin-coupon-meta-boxes', WC()->plugin_url() . '/assets/js/admin/meta-boxes-coupon' . $suffix . '.js', array( 'wc-admin-meta-boxes' ), WC_VERSION );
228
			wp_enqueue_script( 'wc-admin-coupon-meta-boxes' );
229
		}
230
		if ( in_array( str_replace( 'edit-', '', $screen_id ), array_merge( array( 'shop_coupon', 'product' ), wc_get_order_types( 'order-meta-boxes' ) ) ) ) {
231
			$params = array(
232
				'remove_item_notice'            => __( 'Are you sure you want to remove the selected items? If you have previously reduced this item\'s stock, or this order was submitted by a customer, you will need to manually restore the item\'s stock.', 'woocommerce' ),