@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | */ |
| 85 | 85 | private function setRequestOptions() |
| 86 | 86 | { |
| 87 | - $authBearer = 'Bearer '. $this->secretKey; |
|
| 87 | + $authBearer = 'Bearer '.$this->secretKey; |
|
| 88 | 88 | |
| 89 | 89 | $this->client = new Client( |
| 90 | 90 | [ |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | } |
| 138 | 138 | |
| 139 | 139 | $this->response = $this->client->{strtolower($method)}( |
| 140 | - $this->baseUrl . $relativeUrl, |
|
| 140 | + $this->baseUrl.$relativeUrl, |
|
| 141 | 141 | ["body" => json_encode($body)] |
| 142 | 142 | ); |
| 143 | 143 | |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | |
| 167 | 167 | $relativeUrl = "/transaction/verify/{$transactionRef}"; |
| 168 | 168 | |
| 169 | - $this->response = $this->client->get($this->baseUrl . $relativeUrl, []); |
|
| 169 | + $this->response = $this->client->get($this->baseUrl.$relativeUrl, []); |
|
| 170 | 170 | } |
| 171 | 171 | |
| 172 | 172 | /** |
@@ -314,7 +314,7 @@ discard block |
||
| 314 | 314 | public function fetchPlan($plan_code) |
| 315 | 315 | { |
| 316 | 316 | $this->setRequestOptions(); |
| 317 | - return $this->setHttpResponse('/plan/' . $plan_code, 'GET', [])->getResponse(); |
|
| 317 | + return $this->setHttpResponse('/plan/'.$plan_code, 'GET', [])->getResponse(); |
|
| 318 | 318 | } |
| 319 | 319 | |
| 320 | 320 | /** |
@@ -335,7 +335,7 @@ discard block |
||
| 335 | 335 | ]; |
| 336 | 336 | |
| 337 | 337 | $this->setRequestOptions(); |
| 338 | - return $this->setHttpResponse('/plan/' . $plan_code, 'PUT', $data)->getResponse(); |
|
| 338 | + return $this->setHttpResponse('/plan/'.$plan_code, 'PUT', $data)->getResponse(); |
|
| 339 | 339 | } |
| 340 | 340 | |
| 341 | 341 | /** |
@@ -364,7 +364,7 @@ discard block |
||
| 364 | 364 | public function fetchCustomer($customer_id) |
| 365 | 365 | { |
| 366 | 366 | $this->setRequestOptions(); |
| 367 | - return $this->setHttpResponse('/customer/'. $customer_id, 'GET', [])->getResponse(); |
|
| 367 | + return $this->setHttpResponse('/customer/'.$customer_id, 'GET', [])->getResponse(); |
|
| 368 | 368 | } |
| 369 | 369 | |
| 370 | 370 | /** |
@@ -384,7 +384,7 @@ discard block |
||
| 384 | 384 | ]; |
| 385 | 385 | |
| 386 | 386 | $this->setRequestOptions(); |
| 387 | - return $this->setHttpResponse('/customer/'. $customer_id, 'PUT', $data)->getResponse(); |
|
| 387 | + return $this->setHttpResponse('/customer/'.$customer_id, 'PUT', $data)->getResponse(); |
|
| 388 | 388 | } |
| 389 | 389 | |
| 390 | 390 | /** |
@@ -24,8 +24,8 @@ discard block |
||
| 24 | 24 | protected $defer = false; |
| 25 | 25 | |
| 26 | 26 | /** |
| 27 | - * Publishes all the config file this package needs to function |
|
| 28 | - */ |
|
| 27 | + * Publishes all the config file this package needs to function |
|
| 28 | + */ |
|
| 29 | 29 | public function boot() |
| 30 | 30 | { |
| 31 | 31 | $config = realpath(__DIR__.'/../resources/config/paystack.php'); |
@@ -36,8 +36,8 @@ discard block |
||
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | /** |
| 39 | - * Register the application services. |
|
| 40 | - */ |
|
| 39 | + * Register the application services. |
|
| 40 | + */ |
|
| 41 | 41 | public function register() |
| 42 | 42 | { |
| 43 | 43 | $this->app->bind('laravel-paystack', function () { |
@@ -48,9 +48,9 @@ discard block |
||
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | /** |
| 51 | - * Get the services provided by the provider |
|
| 52 | - * @return array |
|
| 53 | - */ |
|
| 51 | + * Get the services provided by the provider |
|
| 52 | + * @return array |
|
| 53 | + */ |
|
| 54 | 54 | public function provides() |
| 55 | 55 | { |
| 56 | 56 | return ['laravel-paystack']; |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | */ |
| 41 | 41 | public function register() |
| 42 | 42 | { |
| 43 | - $this->app->bind('laravel-paystack', function () { |
|
| 43 | + $this->app->bind('laravel-paystack', function() { |
|
| 44 | 44 | |
| 45 | 45 | return new Paystack; |
| 46 | 46 | |