Fix the coding styles

This commit is contained in:
Narek Zakarian 2024-07-17 17:29:13 +04:00
parent c199ce1f8b
commit 0e3c550082
No known key found for this signature in database
GPG key ID: 07AFD7E7A9C164A7
2 changed files with 2 additions and 5 deletions

View file

@ -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(),
);
}