Passed
Push — master ( 9a51a1...791447 )
by Jeff
07:15
created
app/Http/Controllers/Front/Payments/BankTransferController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 
61 61
                 $rate_id = $request->input('rate');
62 62
                 $rates = $shippingRepo->getRates($request->input('shipment_obj_id'));
63
-                $rate = collect($rates->results)->filter(function ($rate) use ($rate_id) {
63
+                $rate = collect($rates->results)->filter(function($rate) use ($rate_id) {
64 64
                     return $rate->object_id == $rate_id;
65 65
                 })->first();
66 66
 
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 
135 135
             $transaction = Shippo_Transaction::create($details);
136 136
 
137
-            if ($transaction['status'] != 'SUCCESS'){
137
+            if ($transaction['status'] != 'SUCCESS') {
138 138
                 Log::error($transaction['messages']);
139 139
                 return redirect()->route('checkout.index')->with('error', 'There is an error in the shipment details. Check logs.');
140 140
             }
Please login to merge, or discard this patch.