From f1b25c31aa43a38a98efbe6754e655d6d9189049 Mon Sep 17 00:00:00 2001 From: Garth Brantley Date: Tue, 5 Dec 2023 10:37:52 -0500 Subject: [PATCH] chore: php-cs-fixer --- src/SubscribePro/Service/Subscription/SubscriptionService.php | 2 +- src/SubscribePro/Utils/SubscriptionUtils.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SubscribePro/Service/Subscription/SubscriptionService.php b/src/SubscribePro/Service/Subscription/SubscriptionService.php index 7fc7878..542b8d0 100644 --- a/src/SubscribePro/Service/Subscription/SubscriptionService.php +++ b/src/SubscribePro/Service/Subscription/SubscriptionService.php @@ -51,7 +51,7 @@ public function saveSubscription(SubscriptionInterface $subscription, array $met { $url = $subscription->isNew() ? '/services/v2/subscription.json' : "/services/v2/subscriptions/{$subscription->getId()}.json"; $formData = $subscription->getFormData(); - $formData = array_filter($formData, function($data) { + $formData = array_filter($formData, function ($data) { if (is_array($data)&& count($data) == 0) { return false; } diff --git a/src/SubscribePro/Utils/SubscriptionUtils.php b/src/SubscribePro/Utils/SubscriptionUtils.php index c238b5a..3d43a73 100755 --- a/src/SubscribePro/Utils/SubscriptionUtils.php +++ b/src/SubscribePro/Utils/SubscriptionUtils.php @@ -89,7 +89,7 @@ protected static function compareSubscriptions(SubscriptionInterface $a, Subscri } if(!$a->getShippingAddressId() || !$b->getShippingAddressId()) { - return 0; + return 0; } // Compare by shipping address $shippingAddressResult = strcmp($a->getShippingAddressId(), $b->getShippingAddressId());