From 082cc2f08a1b6863745e1a0dc8d31115cb84d4bd Mon Sep 17 00:00:00 2001 From: Nathaniel Hammond Date: Wed, 5 Jul 2023 10:16:36 +0100 Subject: [PATCH] Fix cs --- src/services/PaymentSources.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/PaymentSources.php b/src/services/PaymentSources.php index 530f2ed175..62925919fc 100644 --- a/src/services/PaymentSources.php +++ b/src/services/PaymentSources.php @@ -284,7 +284,7 @@ public function createPaymentSource(int $customerId, GatewayInterface $gateway, throw new PaymentSourceException(Craft::t('commerce', 'Could not create the payment source.')); } - if($makePrimarySource) { + if ($makePrimarySource) { Plugin::getInstance()->getCustomers()->savePrimaryPaymentSourceId($source->getCustomer(), $source->id); }