@@ -55,11 +55,11 @@ |
||
55 | 55 | */ |
56 | 56 | private function registerPayPal() |
57 | 57 | { |
58 | - $this->app->singleton('express_checkout', function () { |
|
58 | + $this->app->singleton('express_checkout', function() { |
|
59 | 59 | return new ExpressCheckout(); |
60 | 60 | }); |
61 | 61 | |
62 | - $this->app->singleton('adaptive_payments', function () { |
|
62 | + $this->app->singleton('adaptive_payments', function() { |
|
63 | 63 | return new AdaptivePayments(); |
64 | 64 | }); |
65 | 65 | } |
@@ -288,7 +288,7 @@ |
||
288 | 288 | |
289 | 289 | // Checking Whether The Request Is PayPal IPN Response |
290 | 290 | if ($method == 'verifyipn') { |
291 | - $this->post = $this->post->filter(function ($value, $key) { |
|
291 | + $this->post = $this->post->filter(function($value, $key) { |
|
292 | 292 | if ($key !== 'METHOD') { |
293 | 293 | return $value; |
294 | 294 | } |
@@ -56,13 +56,13 @@ |
||
56 | 56 | */ |
57 | 57 | protected function setCartItems($items) |
58 | 58 | { |
59 | - return (new Collection($items))->map(function ($item, $num) { |
|
59 | + return (new Collection($items))->map(function($item, $num) { |
|
60 | 60 | return [ |
61 | 61 | 'L_PAYMENTREQUEST_0_NAME'.$num => $item['name'], |
62 | 62 | 'L_PAYMENTREQUEST_0_AMT'.$num => $item['price'], |
63 | 63 | 'L_PAYMENTREQUEST_0_QTY'.$num => $item['qty'], |
64 | 64 | ]; |
65 | - })->flatMap(function ($value) { |
|
65 | + })->flatMap(function($value) { |
|
66 | 66 | return $value; |
67 | 67 | }); |
68 | 68 | } |