Fix PHPCS

This commit is contained in:
Daniel Hüsken 2025-02-26 15:54:03 +01:00
parent 4521fc8f52
commit 4d68973408
No known key found for this signature in database
GPG key ID: 9F732DA37FA709E8

View file

@ -199,8 +199,8 @@ class WooCommerceOrderCreator {
$shipping_options = null;
if ( $payer ) {
$address = $payer->address();
$payer_name = $payer->name();
$address = $payer->address();
$payer_name = $payer->name();
$payer_phone = $payer->phone();
$wc_email = null;
@ -221,7 +221,7 @@ class WooCommerceOrderCreator {
'state' => $address ? $address->admin_area_1() : '',
'postcode' => $address ? $address->postal_code() : '',
'country' => $address ? $address->country_code() : '',
'phone' => $payer_phone ? $payer_phone->phone()->national_number() : ''
'phone' => $payer_phone ? $payer_phone->phone()->national_number() : '',
);
}