Completed
Push — master ( be92b0...1f7a83 )
by Raza
01:56
created
src/Providers/PayPalServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,11 +55,11 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Services/ExpressCheckout.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,13 +56,13 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Traits/PayPalRequest.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -294,10 +294,9 @@
 block discarded – undo
294 294
 
295 295
         // Set PayPal API Request Endpoint.
296 296
         $post_url = ($method === 'verifyipn') ?
297
-            $this->config['gateway_url'].'/cgi-bin/webscr' :
298
-            $this->config['api_url'];
297
+            $this->config['gateway_url'].'/cgi-bin/webscr' : $this->config['api_url'];
299 298
 
300
-        $this->post = $this->post->filter(function ($value, $key) use($method) {
299
+        $this->post = $this->post->filter(function($value, $key) use($method) {
301 300
             return (($method === 'verifyipn') && ($key === 'METHOD')) ? '' : $value;
302 301
         })->merge($this->options);
303 302
 
Please login to merge, or discard this patch.