phpcs sniff fixes for class-wc-discounts.php

This commit is contained in:
Ron Rennick 2019-01-15 10:21:21 -04:00
parent 5f2bc29e3d
commit acf46fa28d
1 changed files with 7 additions and 3 deletions

View File

@ -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;
}