@@ -186,7 +186,7 @@ |
||
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 |
@@ -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 | } |
@@ -22,7 +22,7 @@ |
||
22 | 22 | $this->apiUrl = collect([$this->config['api_url'], $this->apiEndPoint])->implode('/'); |
23 | 23 | |
24 | 24 | $data = ['url' => $url]; |
25 | - $data['event_types'] = collect($events)->map(function ($item) { |
|
25 | + $data['event_types'] = collect($events)->map(function($item) { |
|
26 | 26 | return ['name' => $item]; |
27 | 27 | })->toArray(); |
28 | 28 |
@@ -22,8 +22,7 @@ |
||
22 | 22 | */ |
23 | 23 | public function listTransactions(array $filters, $fields = 'all', $page = 1, $page_size = 100) |
24 | 24 | { |
25 | - $filters_list = collect($filters)->isEmpty() ? '' : |
|
26 | - collect($filters)->map(function ($value, $key) { |
|
25 | + $filters_list = collect($filters)->isEmpty() ? '' : collect($filters)->map(function($value, $key) { |
|
27 | 26 | return "{$key}={$value}&"; |
28 | 27 | })->implode(''); |
29 | 28 |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | } |
120 | 120 | |
121 | 121 | if ($invalid_status === true) { |
122 | - throw new \Exception('status should be always one of these: ' . implode(',', $this->invoices_date_types)); |
|
122 | + throw new \Exception('status should be always one of these: '.implode(',', $this->invoices_date_types)); |
|
123 | 123 | } |
124 | 124 | |
125 | 125 | $this->invoice_search_filters['status'] = $status; |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | } |
214 | 214 | |
215 | 215 | if (!in_array($date_type, $this->invoices_date_types)) { |
216 | - throw new \Exception('date type should be always one of these: ' . implode(',', $this->invoices_date_types)); |
|
216 | + throw new \Exception('date type should be always one of these: '.implode(',', $this->invoices_date_types)); |
|
217 | 217 | } |
218 | 218 | |
219 | 219 | $this->invoice_search_filters["{$date_type}_range"] = [ |
@@ -229,7 +229,7 @@ discard block |
||
229 | 229 | * |
230 | 230 | * @return \Srmklive\PayPal\Services\PayPal |
231 | 231 | */ |
232 | - public function addInvoiceFilterByArchivedStatus(bool $archived=null) |
|
232 | + public function addInvoiceFilterByArchivedStatus(bool $archived = null) |
|
233 | 233 | { |
234 | 234 | $this->invoice_search_filters['archived'] = $archived; |
235 | 235 |