Skip to content

Commit

Permalink
Merge pull request #4 from msonowal/analysis-8P7yno
Browse files Browse the repository at this point in the history
Added support for start_at timestamp which makes the subscription to start at later date
Apply fixes from StyleCI
  • Loading branch information
msonowal authored Dec 28, 2017
2 parents def4f3f + be9d015 commit 93485f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SubscriptionBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public function withNotes(array $notes)
public function getStartAtDate()
{
$trialEndsAt = null;
if (! $this->skipTrial) {
if (!$this->skipTrial) {
$trialEndsAt = $this->trialExpires;
}

Expand Down Expand Up @@ -287,7 +287,7 @@ protected function buildPayload()
protected function getTrialEndForPayload()
{
if ($this->skipTrial) {
return null;
return;
}

if ($this->trialExpires) {
Expand Down

0 comments on commit 93485f2

Please sign in to comment.