Passed
Pull Request — master (#2330)
by
unknown
10:14
created
app/Http/Controllers/Stripe/Webhook.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
                     $plan = $subscription['plan'];
33 33
                     if ($plan) {
34 34
                         $plan_nickname = $plan[['nickName']];
35
-                        $roles= Role::where('name', strtolower($plan->nickname))->first();
35
+                        $roles = Role::where('name', strtolower($plan->nickname))->first();
36 36
                         if ($roles) {
37 37
                             $user->role_id = $roles->id;
38 38
                             $user->save();
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
                             
42 42
                     }
43 43
                 case "invoice.payment_failed" : 
44
-                    $roles= Role::where('name', strtolower("free"))->first();
44
+                    $roles = Role::where('name', strtolower("free"))->first();
45 45
                     if ($roles) {
46 46
                         $user->role_id = $roles->id;
47 47
                         $user->save();
Please login to merge, or discard this patch.