Skip to content

Commit

Permalink
chore: php-cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
garthbrantley committed Dec 5, 2023
1 parent 86f5bed commit f1b25c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/SubscribePro/Utils/SubscriptionUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit f1b25c3

Please sign in to comment.