mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-07 19:54:15 +08:00
Fix the coding styles
This commit is contained in:
parent
c199ce1f8b
commit
0e3c550082
2 changed files with 2 additions and 5 deletions
|
@ -210,7 +210,6 @@ class PayPalPaymentMethod extends AbstractPaymentMethodType {
|
|||
*/
|
||||
public function get_payment_method_data() {
|
||||
$script_data = $this->smart_button()->script_data();
|
||||
$cart = WC()->cart;
|
||||
|
||||
if ( isset( $script_data['continuation'] ) ) {
|
||||
$url = add_query_arg( array( CancelController::NONCE => wp_create_nonce( CancelController::NONCE ) ), wc_get_checkout_url() );
|
||||
|
@ -255,7 +254,7 @@ class PayPalPaymentMethod extends AbstractPaymentMethodType {
|
|||
),
|
||||
),
|
||||
'scriptData' => $script_data,
|
||||
'needShipping' => $cart && $cart->needs_shipping(),
|
||||
'needShipping' => WC()->cart->needs_shipping(),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue