Passed
Push — master ( f472e2...498436 )
by Justin
03:56
created
src/Http/Controllers/WebhookController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/SubscriptionBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/Listeners/SubscriptionActivated.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Subscription.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Fastspring/Fastspring.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Billable.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.