Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Samir Merchant <[email protected]>
  • Loading branch information
gpressutto5 and FangedParakeet authored Mar 26, 2024
1 parent be7232d commit 345f63f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/class-wc-payments-utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ public static function map_search_orders_to_charge_ids( $search ) {
* @return array
*/
public static function get_billing_details_from_order( $order ) {
$billing_fields = array_keys( wc()->checkout()->get_checkout_fields( 'billing' ) );
$billing_fields = array_keys( WC()->checkout()->get_checkout_fields( 'billing' ) );
$address_field_to_key = [
'billing_city' => 'city',
'billing_country' => 'country',
Expand All @@ -372,7 +372,7 @@ public static function get_billing_details_from_order( $order ) {
$billing_details['name'] = trim( $order->get_formatted_billing_full_name() );
}

return array_filter( $billing_details );
return $billing_details;
}

/**
Expand Down

0 comments on commit 345f63f

Please sign in to comment.