Completed
Push — master ( 621906...2ddaf7 )
by PROSPER
8s
created
src/Paystack.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      */
87 87
     private function setRequestOptions()
88 88
     {
89
-        $authBearer = 'Bearer '. $this->secretKey;
89
+        $authBearer = 'Bearer '.$this->secretKey;
90 90
 
91 91
         $this->client = new Client(
92 92
             [
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
         }
154 154
 
155 155
         $this->response = $this->client->{strtolower($method)}(
156
-            $this->baseUrl . $relativeUrl,
156
+            $this->baseUrl.$relativeUrl,
157 157
             ["body" => json_encode($body)]
158 158
         );
159 159
 
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
 
183 183
         $relativeUrl = "/transaction/verify/{$transactionRef}";
184 184
 
185
-        $this->response = $this->client->get($this->baseUrl . $relativeUrl, []);
185
+        $this->response = $this->client->get($this->baseUrl.$relativeUrl, []);
186 186
     }
187 187
 
188 188
     /**
@@ -329,7 +329,7 @@  discard block
 block discarded – undo
329 329
     public function fetchPlan($plan_code)
330 330
     {
331 331
         $this->setRequestOptions();
332
-        return $this->setHttpResponse('/plan/' . $plan_code, 'GET', [])->getResponse();
332
+        return $this->setHttpResponse('/plan/'.$plan_code, 'GET', [])->getResponse();
333 333
     }
334 334
 
335 335
     /**
@@ -350,7 +350,7 @@  discard block
 block discarded – undo
350 350
         ];
351 351
 
352 352
         $this->setRequestOptions();
353
-        return $this->setHttpResponse('/plan/' . $plan_code, 'PUT', $data)->getResponse();
353
+        return $this->setHttpResponse('/plan/'.$plan_code, 'PUT', $data)->getResponse();
354 354
     }
355 355
 
356 356
     /**
@@ -379,7 +379,7 @@  discard block
 block discarded – undo
379 379
     public function fetchCustomer($customer_id)
380 380
     {
381 381
         $this->setRequestOptions();
382
-        return $this->setHttpResponse('/customer/'. $customer_id, 'GET', [])->getResponse();
382
+        return $this->setHttpResponse('/customer/'.$customer_id, 'GET', [])->getResponse();
383 383
     }
384 384
 
385 385
     /**
@@ -399,7 +399,7 @@  discard block
 block discarded – undo
399 399
         ];
400 400
 
401 401
         $this->setRequestOptions();
402
-        return $this->setHttpResponse('/customer/'. $customer_id, 'PUT', $data)->getResponse();
402
+        return $this->setHttpResponse('/customer/'.$customer_id, 'PUT', $data)->getResponse();
403 403
     }
404 404
 
405 405
     /**
@@ -455,7 +455,7 @@  discard block
 block discarded – undo
455 455
     {
456 456
         $this->setRequestOptions();
457 457
 
458
-        return $this->setHttpResponse('/subscription?customer=' . $customer_id, 'GET', [])->getData();
458
+        return $this->setHttpResponse('/subscription?customer='.$customer_id, 'GET', [])->getData();
459 459
     }
460 460
 
461 461
     /**
@@ -468,7 +468,7 @@  discard block
 block discarded – undo
468 468
     {
469 469
         $this->setRequestOptions();
470 470
 
471
-        return $this->setHttpResponse('/subscription?plan=' . $plan_id, 'GET', [])->getData();
471
+        return $this->setHttpResponse('/subscription?plan='.$plan_id, 'GET', [])->getData();
472 472
     }
473 473
 
474 474
     /**
Please login to merge, or discard this patch.