Completed
Push — master ( 4a2cd0...9c270e )
by Raza
01:57
created
src/Services/ExpressCheckout.php 1 patch
Spacing   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -69,13 +69,13 @@  discard block
 block discarded – undo
69 69
      */
70 70
     protected function setCartItems($items)
71 71
     {
72
-        return (new Collection($items))->map(function ($item, $num) {
72
+        return (new Collection($items))->map(function($item, $num) {
73 73
             return [
74 74
                 'L_PAYMENTREQUEST_0_NAME'.$num  => $item['name'],
75 75
                 'L_PAYMENTREQUEST_0_AMT'.$num   => $item['price'],
76 76
                 'L_PAYMENTREQUEST_0_QTY'.$num   => $item['qty'],
77 77
             ];
78
-        })->flatMap(function ($value) {
78
+        })->flatMap(function($value) {
79 79
             return $value;
80 80
         });
81 81
     }
@@ -113,8 +113,7 @@  discard block
 block discarded – undo
113 113
 
114 114
         $response = $this->doPayPalRequest('SetExpressCheckout');
115 115
 
116
-        $response['paypal_link'] = empty($response['TOKEN']) ?:
117
-            $this->config['gateway_url'].'/webscr?cmd=_express-checkout&token='.$response['TOKEN'];
116
+        $response['paypal_link'] = empty($response['TOKEN']) ?: $this->config['gateway_url'].'/webscr?cmd=_express-checkout&token='.$response['TOKEN'];
118 117
 
119 118
         return $response;
120 119
     }
Please login to merge, or discard this patch.