From acf46fa28dbc5a1d3250db13575f3f2a33a1cd90 Mon Sep 17 00:00:00 2001 From: Ron Rennick Date: Tue, 15 Jan 2019 10:21:21 -0400 Subject: [PATCH] phpcs sniff fixes for class-wc-discounts.php --- includes/class-wc-discounts.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/includes/class-wc-discounts.php b/includes/class-wc-discounts.php index c4e931f6d7f..94866123fe0 100644 --- a/includes/class-wc-discounts.php +++ b/includes/class-wc-discounts.php @@ -968,9 +968,13 @@ class WC_Discounts { */ $message = apply_filters( 'woocommerce_coupon_error', is_numeric( $e->getMessage() ) ? $coupon->get_coupon_error( $e->getMessage() ) : $e->getMessage(), $e->getCode(), $coupon ); - return new WP_Error( 'invalid_coupon', $message, array( - 'status' => 400, - ) ); + return new WP_Error( + 'invalid_coupon', + $message, + array( + 'status' => 400, + ) + ); } return true; }