Completed
Push — v2 ( 1a5c3b...ed0a80 )
by Raza
05:30
created
src/Traits/PayPalRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -186,7 +186,7 @@
 block discarded – undo
186 186
     private function setApiProviderConfiguration($credentials)
187 187
     {
188 188
         // Setting PayPal API Credentials
189
-        collect($credentials[$this->mode])->map(function ($value, $key) {
189
+        collect($credentials[$this->mode])->map(function($value, $key) {
190 190
             $this->config[$key] = $value;
191 191
         });
192 192
 
Please login to merge, or discard this patch.
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', static function () {
58
+        $this->app->singleton('express_checkout', static function() {
59 59
             return new ExpressCheckout();
60 60
         });
61 61
 
62
-        $this->app->singleton('adaptive_payments', static function () {
62
+        $this->app->singleton('adaptive_payments', static 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
@@ -70,14 +70,14 @@
 block discarded – undo
70 70
      */
71 71
     protected function setCartItems($items)
72 72
     {
73
-        return (new Collection($items))->map(static function ($item, $num) {
73
+        return (new Collection($items))->map(static function($item, $num) {
74 74
             return [
75 75
                 'L_PAYMENTREQUEST_0_NAME'.$num  => $item['name'],
76 76
                 'L_PAYMENTREQUEST_0_AMT'.$num   => $item['price'],
77 77
                 'L_PAYMENTREQUEST_0_DESC'.$num  => isset($item['desc']) ? $item['desc'] : null,
78 78
                 'L_PAYMENTREQUEST_0_QTY'.$num   => isset($item['qty']) ? $item['qty'] : 1,
79 79
             ];
80
-        })->flatMap(static function ($value) {
80
+        })->flatMap(static function($value) {
81 81
             return $value;
82 82
         });
83 83
     }
Please login to merge, or discard this patch.