@@ -69,7 +69,7 @@ |
||
69 | 69 | try { |
70 | 70 | // check if the related event classes are exist |
71 | 71 | // there may be not handled events |
72 | - if (! class_exists($categoryEvent) || ! class_exists($activityEvent)) { |
|
72 | + if (!class_exists($categoryEvent) || !class_exists($activityEvent)) { |
|
73 | 73 | throw new Exception('There is no event for '.$event['type']); |
74 | 74 | } |
75 | 75 |
@@ -105,7 +105,7 @@ |
||
105 | 105 | */ |
106 | 106 | protected function getFastspringIdOfCustomer() |
107 | 107 | { |
108 | - if (! $this->owner->fastspring_id) { |
|
108 | + if (!$this->owner->fastspring_id) { |
|
109 | 109 | try { |
110 | 110 | $customer = $this->owner->createAsFastspringCustomer(); |
111 | 111 | } catch (ClientException $e) { |
@@ -45,7 +45,7 @@ |
||
45 | 45 | |
46 | 46 | $subscription = $user->subscription(); |
47 | 47 | |
48 | - if (! $subscription) { |
|
48 | + if (!$subscription) { |
|
49 | 49 | $subscription = new Subscription(); |
50 | 50 | $subscription->user_id = $user->id; |
51 | 51 | $subscription->name = $subscriptionName; |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | ]; |
217 | 217 | |
218 | 218 | $lastPeriod = SubscriptionPeriod::firstOrCreate($subscriptionPeriodData); |
219 | - } while (! ($today->greaterThanOrEqualTo($lastPeriod->start_date) |
|
219 | + } while (!($today->greaterThanOrEqualTo($lastPeriod->start_date) |
|
220 | 220 | && $today->lessThanOrEqualTo($lastPeriod->end_date) |
221 | 221 | )); |
222 | 222 | |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | */ |
247 | 247 | public function valid() |
248 | 248 | { |
249 | - return ! $this->deactivated(); |
|
249 | + return !$this->deactivated(); |
|
250 | 250 | } |
251 | 251 | |
252 | 252 | /** |
@@ -485,7 +485,7 @@ discard block |
||
485 | 485 | */ |
486 | 486 | public function resume() |
487 | 487 | { |
488 | - if (! $this->onGracePeriod()) { |
|
488 | + if (!$this->onGracePeriod()) { |
|
489 | 489 | throw new LogicException('Unable to resume subscription that is not within grace period or not canceled.'); |
490 | 490 | } |
491 | 491 |
@@ -38,7 +38,7 @@ |
||
38 | 38 | */ |
39 | 39 | public static function __callStatic($method, $parameters) |
40 | 40 | { |
41 | - if (! self::$instance) { |
|
41 | + if (!self::$instance) { |
|
42 | 42 | $username = (getenv('FASTSPRING_USERNAME') ?: config('services.fastspring.username')); |
43 | 43 | $password = (getenv('FASTSPRING_PASSWORD') ?: config('services.fastspring.password')); |
44 | 44 |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | { |
153 | 153 | $subscription = $this->subscription($subscription); |
154 | 154 | |
155 | - if (! $subscription || ! $subscription->valid()) { |
|
155 | + if (!$subscription || !$subscription->valid()) { |
|
156 | 156 | return false; |
157 | 157 | } |
158 | 158 | |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | */ |
175 | 175 | public function onPlan($plan) |
176 | 176 | { |
177 | - return ! is_null($this->subscriptions->first(function ($value) use ($plan) { |
|
177 | + return !is_null($this->subscriptions->first(function($value) use ($plan) { |
|
178 | 178 | return $value->plan === $plan && $value->valid(); |
179 | 179 | })); |
180 | 180 | } |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | */ |
187 | 187 | public function hasFastspringId() |
188 | 188 | { |
189 | - return ! is_null($this->fastspring_id); |
|
189 | + return !is_null($this->fastspring_id); |
|
190 | 190 | } |
191 | 191 | |
192 | 192 | /** |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | */ |
246 | 246 | public function updateAsFastspringCustomer(array $options = []) |
247 | 247 | { |
248 | - if (! $this->hasFastspringId()) { |
|
248 | + if (!$this->hasFastspringId()) { |
|
249 | 249 | throw new Exception('User has no fastspring_id'); |
250 | 250 | } |
251 | 251 | |
@@ -278,7 +278,7 @@ discard block |
||
278 | 278 | { |
279 | 279 | // check the fastspring_id first |
280 | 280 | // if there is non, no need to try |
281 | - if (! $this->hasFastspringId()) { |
|
281 | + if (!$this->hasFastspringId()) { |
|
282 | 282 | throw new Exception('User has no fastspring_id'); |
283 | 283 | } |
284 | 284 |