Completed
Pull Request — master (#322)
by Raza
01:52
created
src/Services/AdaptivePayments.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -251,7 +251,7 @@
 block discarded – undo
251 251
     /**
252 252
      * Function To Perform PayPal API Request.
253 253
      *
254
-     * @param $method
254
+     * @param string $method
255 255
      *
256 256
      * @return array|mixed
257 257
      */
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
             'cancelUrl'       => $data['cancel_url'],
94 94
             'requestEnvelope' => $this->setEnvelope(),
95 95
             'feesPayer'       => $data['payer'],
96
-        ])->filter(static function ($value, $key) {
96
+        ])->filter(static function($value, $key) {
97 97
             return $key === 'feesPayer' && empty($value) ? null : $value;
98 98
         });
99 99
     }
@@ -200,14 +200,14 @@  discard block
 block discarded – undo
200 200
      */
201 201
     private function setPaymentOptionsReceiverDetails($receivers)
202 202
     {
203
-        return collect($receivers)->map(static function ($receiver) {
203
+        return collect($receivers)->map(static function($receiver) {
204 204
             $item = [];
205 205
 
206 206
             $item['receiver'] = [
207 207
                 'email' => $receiver['email'],
208 208
             ];
209 209
 
210
-            $item['invoiceData']['item'] = collect($receiver['invoice_data'])->map(function ($invoice) {
210
+            $item['invoiceData']['item'] = collect($receiver['invoice_data'])->map(function($invoice) {
211 211
                 return $invoice;
212 212
             })->toArray();
213 213
 
Please login to merge, or discard this patch.