@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | $payment_details = array( |
37 | 37 | "description" => "Build Brighton", |
38 | 38 | 'success_redirect_url' => route('account.subscription.store', $user->id), |
39 | - "session_token" => 'user-token-'.$user->id, |
|
39 | + "session_token" => 'user-token-' . $user->id, |
|
40 | 40 | 'prefilled_customer' => [ |
41 | 41 | 'given_name' => $user->given_name, |
42 | 42 | 'family_name' => $user->family_name, |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | } |
82 | 82 | |
83 | 83 | |
84 | - if (!isset($confirmed_resource->links->mandate) || empty($confirmed_resource->links->mandate)) { |
|
84 | + if ( ! isset($confirmed_resource->links->mandate) || empty($confirmed_resource->links->mandate)) { |
|
85 | 85 | \Notification::error('Something went wrong, you can try again or get in contact'); |
86 | 86 | return \Redirect::route('account.show', $user->id); |
87 | 87 | } |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | $paymentMethod = \Input::get('payment_method'); |
154 | 154 | |
155 | 155 | if ($paymentMethod === 'balance' && $user->payment_method == 'gocardless-variable') { |
156 | - $user->payment_method = 'balance'; |
|
156 | + $user->payment_method = 'balance'; |
|
157 | 157 | $user->secondary_payment_method = 'gocardless-variable'; |
158 | 158 | $user->save(); |
159 | 159 | } |