@@ -54,7 +54,7 @@ |
||
54 | 54 | */ |
55 | 55 | private function registerPayPal() |
56 | 56 | { |
57 | - $this->app->singleton('paypal_client', static function () { |
|
57 | + $this->app->singleton('paypal_client', static function() { |
|
58 | 58 | return new PayPalClient(); |
59 | 59 | }); |
60 | 60 | } |
@@ -195,7 +195,7 @@ |
||
195 | 195 | } |
196 | 196 | } |
197 | 197 | |
198 | - collect($credentials[$this->mode])->map(function ($value, $key) { |
|
198 | + collect($credentials[$this->mode])->map(function($value, $key) { |
|
199 | 199 | $this->config[$key] = $value; |
200 | 200 | }); |
201 | 201 |
@@ -21,7 +21,7 @@ |
||
21 | 21 | $this->apiEndPoint = 'v1/notifications/webhooks'; |
22 | 22 | |
23 | 23 | $data = ['url' => $url]; |
24 | - $data['event_types'] = collect($events)->map(function ($item) { |
|
24 | + $data['event_types'] = collect($events)->map(function($item) { |
|
25 | 25 | return ['name' => $item]; |
26 | 26 | })->toArray(); |
27 | 27 |
@@ -20,8 +20,7 @@ |
||
20 | 20 | */ |
21 | 21 | public function listTransactions(array $filters, string $fields = 'all') |
22 | 22 | { |
23 | - $filters_list = collect($filters)->isEmpty() ? '' : |
|
24 | - collect($filters)->map(function ($value, $key) { |
|
23 | + $filters_list = collect($filters)->isEmpty() ? '' : collect($filters)->map(function($value, $key) { |
|
25 | 24 | return "{$key}={$value}&"; |
26 | 25 | })->implode(''); |
27 | 26 |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | * |
16 | 16 | * @see https://developer.paypal.com/limited-release/reference-transactions/#link-createbillingagreementtoken |
17 | 17 | */ |
18 | - public function createBillingAgreementToken (array $data) { |
|
18 | + public function createBillingAgreementToken(array $data) { |
|
19 | 19 | $this->apiEndPoint = 'v1/billing-agreements/agreement-tokens'; |
20 | 20 | |
21 | 21 | $this->options['json'] = (object) $data; |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | * |
37 | 37 | * @see https://developer.paypal.com/limited-release/reference-transactions/#link-createbillingagreement |
38 | 38 | */ |
39 | - public function createBillingAgreement (string $billingAgreementToken) { |
|
39 | + public function createBillingAgreement(string $billingAgreementToken) { |
|
40 | 40 | $this->apiEndPoint = "v1/billing-agreements/{$billingAgreementToken}/agreements"; |
41 | 41 | |
42 | 42 | $this->verb = 'post'; |