mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Fix lint
This commit is contained in:
parent
c69f2a99b8
commit
46f579c42f
1 changed files with 7 additions and 0 deletions
|
@ -95,6 +95,12 @@ class UpdatePaymentDataEndpoint {
|
|||
|
||||
// Update shipping address.
|
||||
if ( $payment_data['callbackTrigger'] === 'SHIPPING_ADDRESS' ) {
|
||||
|
||||
/**
|
||||
* The shipping methods.
|
||||
*
|
||||
* @var \WC_Customer|null $customer
|
||||
*/
|
||||
$customer = WC()->customer;
|
||||
|
||||
if ( $customer ) {
|
||||
|
@ -163,6 +169,7 @@ class UpdatePaymentDataEndpoint {
|
|||
|
||||
/**
|
||||
* The shipping methods.
|
||||
*
|
||||
* @var \WC_Shipping_Method[] $methods
|
||||
*/
|
||||
$methods = $zone->get_shipping_methods( true );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue