From 9c371f6d743701643398ebf7953a131ce05bf5e0 Mon Sep 17 00:00:00 2001 From: Dat Hoang Date: Sun, 22 Apr 2018 21:10:20 +0700 Subject: [PATCH] Add the comment to make clear for "switch ( $type )" --- inc/class-wooviet-onepay-domestic.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/class-wooviet-onepay-domestic.php b/inc/class-wooviet-onepay-domestic.php index 62a3c87..e763c66 100644 --- a/inc/class-wooviet-onepay-domestic.php +++ b/inc/class-wooviet-onepay-domestic.php @@ -275,7 +275,8 @@ class WooViet_OnePay_Domestic extends WC_Payment_Gateway { // Log data $message_log = sprintf('process_onepay_response_data - Order ID: %1$s - Order Note: %2$s - http_args: %3$s', $order_id, $order_note, print_r($args, true) ); self::log( $message_log); - + + // Do the last actions based on $type switch ( $type ) { case 'return': // Add info from OnePay and redirect to the appropriate URLs