@@ -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 | /** |
@@ -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 | |