Passed
Pull Request — master (#41)
by Mike
02:12
created
src/Http/Requests/RecordStripeEvent.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -107,8 +107,8 @@  discard block
 block discarded – undo
107 107
                 'Churned' => Carbon::parse($transaction['canceled_at'])->format('Y-m-d\Th:i:s'),
108 108
                 'Plan When Churned' => $planName,
109 109
                 'Paid Lifetime' => Carbon::createFromTimestampUTC($planStart)
110
-                  ->diffInDays(Carbon::timestamp($transaction['ended_at'])
111
-                  ->timezone('UTC')) . ' days'
110
+                    ->diffInDays(Carbon::timestamp($transaction['ended_at'])
111
+                    ->timezone('UTC')) . ' days'
112 112
             ];
113 113
             $trackingData = [
114 114
                 ['Subscription', ['Status' => 'Canceled', 'Upgraded' => false]],
@@ -122,8 +122,8 @@  discard block
 block discarded – undo
122 122
                     $profileData = [
123 123
                         'Subscription' => $planName,
124 124
                         'Churned' => Carbon::timestamp($transaction['ended_at'])
125
-                          ->timezone('UTC')
126
-                          ->format('Y-m-d\Th:i:s'),
125
+                            ->timezone('UTC')
126
+                            ->format('Y-m-d\Th:i:s'),
127 127
                         'Plan When Churned' => $oldPlanName,
128 128
                     ];
129 129
                     $trackingData = [
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     {
23 23
         $data = $this->json()->all();
24 24
 
25
-        if (! $data || ! array_key_exists('data', $data)) {
25
+        if ( ! $data || ! array_key_exists('data', $data)) {
26 26
             return;
27 27
         }
28 28
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
         $authModel = config('auth.providers.users.model') ?? config('auth.model');
35 35
         $user = app($authModel)->where('stripe_id', $stripeCustomerId)->first();
36 36
 
37
-        if (! $user) {
37
+        if ( ! $user) {
38 38
             return;
39 39
         }
40 40
 
Please login to merge, or discard this patch.