Completed
Push — master ( fc7256...45970b )
by Raza
05:01 queued 02:34
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/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/Services/AdaptivePayments.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
             'cancelUrl'       => $data['cancel_url'],
87 87
             'requestEnvelope' => $this->setEnvelope(),
88 88
             'feesPayer'       => $data['payer'],
89
-        ])->filter(function ($value, $key) {
89
+        ])->filter(function($value, $key) {
90 90
             return (($key === 'feesPayer') && empty($value)) ? null : $value;
91 91
         });
92 92
     }
@@ -193,14 +193,14 @@  discard block
 block discarded – undo
193 193
      */
194 194
     private function setPaymentOptionsReceiverDetails($receivers)
195 195
     {
196
-        return collect($receivers)->map(function ($receiver) {
196
+        return collect($receivers)->map(function($receiver) {
197 197
             $item = [];
198 198
 
199 199
             $item['receiver'] = [
200 200
                 'email' => $receiver['email'],
201 201
             ];
202 202
 
203
-            $item['invoiceData']['item'] = collect($receiver['invoice_data'])->map(function ($invoice) {
203
+            $item['invoiceData']['item'] = collect($receiver['invoice_data'])->map(function($invoice) {
204 204
                 return $invoice;
205 205
             })->toArray();
206 206
 
Please login to merge, or discard this patch.
src/Services/ExpressCheckout.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -66,13 +66,13 @@  discard block
 block discarded – undo
66 66
      */
67 67
     protected function setCartItems($items)
68 68
     {
69
-        return (new Collection($items))->map(function ($item, $num) {
69
+        return (new Collection($items))->map(function($item, $num) {
70 70
             return [
71
-                'L_PAYMENTREQUEST_0_NAME' . $num => $item['name'],
72
-                'L_PAYMENTREQUEST_0_AMT' . $num => $item['price'],
73
-                'L_PAYMENTREQUEST_0_QTY' . $num => isset($item['qty']) ? $item['qty'] : 1,
71
+                'L_PAYMENTREQUEST_0_NAME'.$num => $item['name'],
72
+                'L_PAYMENTREQUEST_0_AMT'.$num => $item['price'],
73
+                'L_PAYMENTREQUEST_0_QTY'.$num => isset($item['qty']) ? $item['qty'] : 1,
74 74
             ];
75
-        })->flatMap(function ($value) {
75
+        })->flatMap(function($value) {
76 76
             return $value;
77 77
         });
78 78
     }
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
         $response = $this->doPayPalRequest('SetExpressCheckout');
182 182
 
183 183
         return collect($response)->merge([
184
-            'paypal_link' => !empty($response['TOKEN']) ? $this->config['gateway_url'] . '/webscr?cmd=_express-checkout&token=' . $response['TOKEN'] : null,
184
+            'paypal_link' => !empty($response['TOKEN']) ? $this->config['gateway_url'].'/webscr?cmd=_express-checkout&token='.$response['TOKEN'] : null,
185 185
         ])->toArray();
186 186
     }
187 187
 
Please login to merge, or discard this patch.