Fix phpcd

This commit is contained in:
emilicastells 2022-12-08 14:18:03 +01:00
parent b161b8cfb5
commit e3dc563a6f
No known key found for this signature in database
GPG key ID: 1520C07081754570
5 changed files with 20 additions and 8 deletions

View file

@ -208,6 +208,14 @@ class PaymentTokenEndpoint {
return wp_remote_retrieve_response_code( $response ) === 204;
}
/**
* Deletes payment token by the given id.
*
* @param string $token_id Token id.
* @return bool
*
* @throws RuntimeException If something goes wrong while deleting the token.
*/
public function delete_token_by_id( string $token_id ): bool {
$bearer = $this->bearer->bearer();

View file

@ -4,12 +4,16 @@
*
* @package WooCommerce\PayPalCommerce\Vaulting
*/
declare(strict_types=1);
namespace WooCommerce\PayPalCommerce\Vaulting;
use WC_Payment_Token;
/**
* Class PaymentTokenPayPal
*/
class PaymentTokenPayPal extends WC_Payment_Token {
/**
* Token Type String.

View file

@ -223,7 +223,7 @@ class PayPalGateway extends \WC_Payment_Gateway {
'subscription_payment_method_change_customer',
'subscription_payment_method_change_admin',
'multiple_subscriptions',
'tokenization'
'tokenization',
);
}