Completed
Push — gocardless-upgrade ( 88f819...8f5bab )
by Arthur
11:53 queued 07:44
created
app/Http/Controllers/ACS/ActivityController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
app/Http/Controllers/SubscriptionController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.