@@ -73,7 +73,7 @@ |
||
73 | 73 | |
74 | 74 | |
75 | 75 | return response()->json([ |
76 | - 'activityId' => isset($activityId)? $activityId: null, |
|
76 | + 'activityId' => isset($activityId) ? $activityId : null, |
|
77 | 77 | 'user' => [ |
78 | 78 | 'id' => $keyFob->user->id, |
79 | 79 | 'name' => $keyFob->user->name, |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | $payment_details = array( |
38 | 38 | "description" => "Build Brighton", |
39 | 39 | 'success_redirect_url' => route('account.subscription.store', $user->id), |
40 | - "session_token" => 'user-token-'.$user->id, |
|
40 | + "session_token" => 'user-token-' . $user->id, |
|
41 | 41 | 'prefilled_customer' => [ |
42 | 42 | 'given_name' => $user->given_name, |
43 | 43 | 'family_name' => $user->family_name, |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | } |
83 | 83 | |
84 | 84 | |
85 | - if (!isset($confirmed_resource->links->mandate) || empty($confirmed_resource->links->mandate)) { |
|
85 | + if ( ! isset($confirmed_resource->links->mandate) || empty($confirmed_resource->links->mandate)) { |
|
86 | 86 | \Notification::error('Something went wrong, you can try again or get in contact'); |
87 | 87 | return \Redirect::route('account.show', $user->id); |
88 | 88 | } |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | |
156 | 156 | if ($paymentMethod === 'balance' && empty($user->payment_method) && ($user->status == 'setting-up')) { |
157 | 157 | // Activate a users membership with a payment method of balance |
158 | - $user->payment_method = 'balance'; |
|
158 | + $user->payment_method = 'balance'; |
|
159 | 159 | $user->secondary_payment_method = null; |
160 | 160 | $user->payment_day = Carbon::now()->day; |
161 | 161 | $user->save(); |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | } |
165 | 165 | |
166 | 166 | if ($paymentMethod === 'balance' && $user->payment_method == 'gocardless-variable') { |
167 | - $user->payment_method = 'balance'; |
|
167 | + $user->payment_method = 'balance'; |
|
168 | 168 | $user->secondary_payment_method = 'gocardless-variable'; |
169 | 169 | $user->save(); |
170 | 170 | } |