@@ -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 | } |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | |
160 | 160 | if ($paymentMethod === 'balance' && empty($user->payment_method) && in_array($user->status, ['setting-up', 'left', 'leaving'])) { |
161 | 161 | // Activate a users membership with a payment method of balance |
162 | - $user->payment_method = 'balance'; |
|
162 | + $user->payment_method = 'balance'; |
|
163 | 163 | $user->secondary_payment_method = null; |
164 | 164 | $user->payment_day = Carbon::now()->day; |
165 | 165 | $user->save(); |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | } |
169 | 169 | |
170 | 170 | if ($paymentMethod === 'balance' && $user->payment_method == 'gocardless-variable') { |
171 | - $user->payment_method = 'balance'; |
|
171 | + $user->payment_method = 'balance'; |
|
172 | 172 | $user->secondary_payment_method = 'gocardless-variable'; |
173 | 173 | $user->save(); |
174 | 174 | } |