| @@ -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->apiUrl, $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 | |
| @@ -209,12 +209,10 @@ | ||
| 209 | 209 | public function listSubscriptionTransactions($subscription_id, $start_date = '', $end_date = '') | 
| 210 | 210 |      { | 
| 211 | 211 | $start_date = empty($start_date) ? | 
| 212 | - Carbon::now()->subDay()->toIso8601String() : | |
| 213 | - Carbon::parse($start_date)->toIso8601String(); | |
| 212 | + Carbon::now()->subDay()->toIso8601String() : Carbon::parse($start_date)->toIso8601String(); | |
| 214 | 213 | |
| 215 | 214 | $end_date = empty($end_date) ? | 
| 216 | - Carbon::now()->toIso8601String() : | |
| 217 | - Carbon::parse($end_date)->toIso8601String(); | |
| 215 | + Carbon::now()->toIso8601String() : Carbon::parse($end_date)->toIso8601String(); | |
| 218 | 216 | |
| 219 | 217 |          $this->apiEndPoint = "v1/billing/subscriptions/{$subscription_id}/transactions?start_time={$start_date}&end_time={$end_date}"; | 
| 220 | 218 |          $this->apiUrl = collect([$this->apiUrl, $this->apiEndPoint])->implode('/'); |