Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
frknasir authored and github-actions[bot] committed Apr 12, 2023
1 parent b47d862 commit df2fce2
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/HasSubscriptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public function hasPendingDowngrade(): bool
if (is_null($this->subscription)) {
return false;
}

return is_null($this->subscription->suppressed_at) &&
(bool) $this->subscription->was_switched;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Subscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ public function renew(?Carbon $expirationDate = null): self
'expired_at' => $expirationDate,
'grace_days_ended_at' => $this->getRenewedExpiration()->addDays(
$this->plan->grace_days
)
),
]);

event(new Events\SubscriptionRenewed($this));
Expand Down
2 changes: 1 addition & 1 deletion src/SubscriptionInvoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function amount(): Attribute

$amount = data_get($this->meta, 'amount');

return Attribute::make(fn () => $amount ? $subscription?->plan->currency . ($amount/100) : '');
return Attribute::make(fn () => $amount ? $subscription?->plan->currency.($amount / 100) : '');
}

/**
Expand Down
1 change: 0 additions & 1 deletion src/Tithe.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
use Tithe\Contracts\CreatesPlans;
use Tithe\Contracts\DetachesFeaturesFromPlans;
use Tithe\Contracts\DowngradesSubscriptions;
use Tithe\Contracts\HandlesOverdueSubscriptions;
use Tithe\Contracts\RenewsSubscriptions;
use Tithe\Contracts\UpdatesFeatures;
use Tithe\Contracts\UpdatesPlans;
Expand Down

0 comments on commit df2fce2

Please sign in to comment.