Completed
Push — master ( b7d91a...cdde1c )
by Raza
03:37
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, -2 removed lines patch added patch discarded remove patch
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
     private function setApiProviderConfiguration($credentials)
190 190
     {
191 191
         // Setting PayPal API Credentials
192
-        collect($credentials[$this->mode])->map(function ($value, $key) {
192
+        collect($credentials[$this->mode])->map(function($value, $key) {
193 193
             $this->config[$key] = $value;
194 194
         });
195 195
 
@@ -344,7 +344,7 @@  discard block
 block discarded – undo
344 344
         ], $this->options);
345 345
 
346 346
         $this->post = $this->post->merge($config)
347
-            ->filter(function ($value, $key) use ($method) {
347
+            ->filter(function($value, $key) use ($method) {
348 348
                 return (($method === 'verifyipn') && ($key === 'METHOD')) ?: $value;
349 349
             });
350 350
     }
Please login to merge, or discard this patch.
src/Services/AdaptivePayments.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
             'feesPayer'         => $data['payer'],
89 89
         ]);
90 90
 
91
-        $this->post = $this->post->filter(function ($value, $key) {
91
+        $this->post = $this->post->filter(function($value, $key) {
92 92
             return (($key === 'feesPayer') && empty($value)) ?: $value;
93 93
         });
94 94
     }
@@ -195,14 +195,14 @@  discard block
 block discarded – undo
195 195
      */
196 196
     private function setPaymentOptionsReceiverDetails($receivers)
197 197
     {
198
-        return collect($receivers)->map(function ($receiver) {
198
+        return collect($receivers)->map(function($receiver) {
199 199
             $item = [];
200 200
 
201 201
             $item['receiver'] = [
202 202
                 'email' => $receiver['email'],
203 203
             ];
204 204
 
205
-            $item['invoiceData']['item'] = collect($receiver['invoice_data'])->map(function ($invoice) {
205
+            $item['invoiceData']['item'] = collect($receiver['invoice_data'])->map(function($invoice) {
206 206
                 return $invoice;
207 207
             })->toArray();
208 208
 
Please login to merge, or discard this patch.