coding standards

This commit is contained in:
Ewout Fernhout 2019-05-18 16:36:34 +02:00 committed by GitHub
parent 3819350aaa
commit 5089c93969
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ foreach ( $items as $item_id => $item ) :
}
echo apply_filters( 'woocommerce_order_item_name', $item->get_name(), $item, false );
if ( $show_sku && !empty( $sku ) ) {
if ( $show_sku && ! empty( $sku ) ) {
echo ' (#' . $sku . ')';
}
echo ' X ' . apply_filters( 'woocommerce_email_order_item_quantity', $item->get_quantity(), $item );
@ -49,7 +49,7 @@ foreach ( $items as $item_id => $item ) :
do_action( 'woocommerce_order_item_meta_end', $item_id, $item, $order, $plain_text );
}
// Note
if ( $show_purchase_note && !empty( $purchase_note ) ) {
if ( $show_purchase_note && ! empty( $purchase_note ) ) {
echo "\n" . do_shortcode( wp_kses_post( $purchase_note ) );
}
echo "\n\n";