@@ -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 | } |
@@ -218,12 +218,10 @@ |
||
218 | 218 | public function listSubscriptionTransactions($subscription_id, $start_date = '', $end_date = '') |
219 | 219 | { |
220 | 220 | $start_date = empty($start_date) ? |
221 | - Carbon::now()->subDay()->toIso8601String() : |
|
222 | - Carbon::parse($start_date)->toIso8601String(); |
|
221 | + Carbon::now()->subDay()->toIso8601String() : Carbon::parse($start_date)->toIso8601String(); |
|
223 | 222 | |
224 | 223 | $end_date = empty($end_date) ? |
225 | - Carbon::now()->toIso8601String() : |
|
226 | - Carbon::parse($end_date)->toIso8601String(); |
|
224 | + Carbon::now()->toIso8601String() : Carbon::parse($end_date)->toIso8601String(); |
|
227 | 225 | |
228 | 226 | $this->apiEndPoint = "v1/billing/subscriptions/{$subscription_id}/transactions?start_time={$start_date}&end_time={$end_date}"; |
229 | 227 | $this->apiUrl = collect([$this->config['api_url'], $this->apiEndPoint])->implode('/'); |
@@ -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 |