Skip to content

Commit 7ecc89a

Browse files
committed
Fix PHPCS issues on new code.
1 parent 63e8c7b commit 7ecc89a

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

includes/class-wc-gateway-amazon-payments-advanced.php

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ public function handle_account_registration( $customer_id ) {
251251

252252
if ( $customer_id && ! empty( $data['amazon_link'] ) ) {
253253
$checkout_session = $this->get_checkout_session();
254-
$buyer_id = $checkout_session->buyer->buyerId;
254+
$buyer_id = $checkout_session->buyer->buyerId;
255255

256256
$buyer_user_id = $this->get_customer_id_from_buyer( $buyer_id );
257257
if ( ! $buyer_user_id ) {
@@ -266,9 +266,9 @@ public function handle_account_registration( $customer_id ) {
266266
// FROM: WC_Checkout->process_customer
267267
if ( ! is_user_logged_in() && ( $checkout->is_registration_required() || ! empty( $data['createaccount'] ) ) ) {
268268
$checkout_session = $this->get_checkout_session();
269-
$buyer_id = $checkout_session->buyer->buyerId;
270-
$buyer_email = $checkout_session->buyer->email;
271-
$buyer_user_id = $this->get_customer_id_from_buyer( $buyer_id );
269+
$buyer_id = $checkout_session->buyer->buyerId;
270+
$buyer_email = $checkout_session->buyer->email;
271+
$buyer_user_id = $this->get_customer_id_from_buyer( $buyer_id );
272272

273273
if ( isset( $data['amazon_validate'] ) ) {
274274
if ( $buyer_user_id ) {
@@ -300,8 +300,8 @@ public function handle_account_registration( $customer_id ) {
300300
}
301301

302302
if ( ! $customer_id ) {
303-
$username = ! empty( $data['account_username'] ) ? $data['account_username'] : '';
304-
$password = ! empty( $data['account_password'] ) ? $data['account_password'] : '';
303+
$username = ! empty( $data['account_username'] ) ? $data['account_username'] : '';
304+
$password = ! empty( $data['account_password'] ) ? $data['account_password'] : '';
305305

306306
$customer_id = wc_create_new_customer(
307307
$data['billing_email'],
@@ -452,8 +452,8 @@ public function maybe_handle_apa_action() {
452452

453453
if ( ! is_user_logged_in() ) {
454454
$checkout_session = $this->get_checkout_session();
455-
$buyer_id = $checkout_session->buyer->buyerId;
456-
$buyer_email = $checkout_session->buyer->email;
455+
$buyer_id = $checkout_session->buyer->buyerId;
456+
$buyer_email = $checkout_session->buyer->email;
457457

458458
$buyer_user_id = $this->get_customer_id_from_buyer( $buyer_id );
459459

@@ -481,8 +481,8 @@ public function maybe_handle_apa_action() {
481481

482482
if ( isset( $_GET['amazon_validate_ownership'] ) && $this->is_logged_in() ) {
483483
$checkout_session = $this->get_checkout_session();
484-
$buyer_id = $checkout_session->buyer->buyerId;
485-
$buyer_email = $checkout_session->buyer->email;
484+
$buyer_id = $checkout_session->buyer->buyerId;
485+
$buyer_email = $checkout_session->buyer->email;
486486

487487
$buyer_user_id = $this->get_customer_id_from_buyer( $buyer_id );
488488

@@ -502,7 +502,7 @@ public function maybe_handle_apa_action() {
502502
$code = wp_rand( 1111, 9999 );
503503
update_user_meta( $user_id, 'wc_apa_ownership_verification_code', $code );
504504

505-
$mailer = WC()->mailer();
505+
$mailer = WC()->mailer();
506506

507507
// Buffer.
508508
ob_start();
@@ -643,8 +643,8 @@ protected function hijack_checkout_field_account( $checkout ) {
643643
}
644644

645645
$checkout_session = $this->get_checkout_session();
646-
$buyer_id = $checkout_session->buyer->buyerId;
647-
$buyer_email = $checkout_session->buyer->email;
646+
$buyer_id = $checkout_session->buyer->buyerId;
647+
$buyer_email = $checkout_session->buyer->email;
648648

649649
$buyer_user_id = $this->get_customer_id_from_buyer( $buyer_id );
650650

@@ -673,9 +673,9 @@ protected function hijack_checkout_field_account( $checkout ) {
673673
);
674674

675675
$checkout_fields['account']['amazon_validate'] = array(
676-
'type' => 'text',
677-
'label' => __( 'Verification Code', 'woocommerce-gateway-amazon-payments-advanced' ),
678-
'required' => true,
676+
'type' => 'text',
677+
'label' => __( 'Verification Code', 'woocommerce-gateway-amazon-payments-advanced' ),
678+
'required' => true,
679679
);
680680

681681
$checkout->checkout_fields = $checkout_fields;
@@ -776,8 +776,8 @@ public function display_amazon_customer_info() {
776776
<?php if ( is_user_logged_in() ) : ?>
777777
<?php
778778
$checkout_session = $this->get_checkout_session();
779-
$buyer_id = $checkout_session->buyer->buyerId;
780-
$buyer_email = $checkout_session->buyer->email;
779+
$buyer_id = $checkout_session->buyer->buyerId;
780+
$buyer_email = $checkout_session->buyer->email;
781781

782782
$buyer_user_id = $this->get_customer_id_from_buyer( $buyer_id );
783783
?>
@@ -789,8 +789,8 @@ public function display_amazon_customer_info() {
789789
woocommerce_form_field(
790790
$key,
791791
array(
792-
'type' => 'checkbox',
793-
'label' => __( 'Link Amazon Pay Account', 'woocommerce-gateway-amazon-payments-advanced' ),
792+
'type' => 'checkbox',
793+
'label' => __( 'Link Amazon Pay Account', 'woocommerce-gateway-amazon-payments-advanced' ),
794794
),
795795
$checkout->get_value( $key )
796796
);

0 commit comments

Comments
 (0)