@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | * @return Resolve |
13 | 13 | * @link https://paystack.com/docs/api/#verification-resolve-account |
14 | 14 | */ |
15 | - public function bank(array $query = []): self |
|
15 | + public function bank(array $query = [ ]): self |
|
16 | 16 | { |
17 | 17 | $this->get($this->url('/bank/resolve'), $query); |
18 | 18 | return $this; |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | * @return Resolve |
26 | 26 | * @link https://paystack.com/docs/api/#verification-match-bvn |
27 | 27 | */ |
28 | - public function bvn(array $payload = []): self |
|
28 | + public function bvn(array $payload = [ ]): self |
|
29 | 29 | { |
30 | 30 | $this->post('/bvn/match', $payload); |
31 | 31 | return $this; |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | */ |
41 | 41 | public function card(string $card_bin): self |
42 | 42 | { |
43 | - $this->get('/decision/bin/'. $card_bin); |
|
43 | + $this->get('/decision/bin/' . $card_bin); |
|
44 | 44 | return $this; |
45 | 45 | } |
46 | 46 | } |
@@ -28,7 +28,7 @@ |
||
28 | 28 | */ |
29 | 29 | public function states(string $country_code): self |
30 | 30 | { |
31 | - $this->get($this->url('/address_verification/states'), ['country' => $country_code]); |
|
31 | + $this->get($this->url('/address_verification/states'), [ 'country' => $country_code ]); |
|
32 | 32 | return $this; |
33 | 33 | } |
34 | 34 | } |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | * @return Split |
27 | 27 | * @link https://paystack.com/docs/api/#split-list |
28 | 28 | */ |
29 | - public function list(array $query = []): self |
|
29 | + public function list(array $query = [ ]): self |
|
30 | 30 | { |
31 | 31 | $this->get($this->url(self::ENDPOINT), $query); |
32 | 32 | return $this; |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | * @return Split |
54 | 54 | * @link https://paystack.com/docs/api/#split-update |
55 | 55 | */ |
56 | - public function update(string $split_id, array $payload = []): self |
|
56 | + public function update(string $split_id, array $payload = [ ]): self |
|
57 | 57 | { |
58 | 58 | $this->put($this->url(self::ENDPOINT) . '/' . $split_id, $payload); |
59 | 59 | return $this; |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | * @return Split |
69 | 69 | * @link https://paystack.com/docs/api/#split-add-subaccount |
70 | 70 | */ |
71 | - public function addSubaccount(string $split_id, array $payload = []): self |
|
71 | + public function addSubaccount(string $split_id, array $payload = [ ]): self |
|
72 | 72 | { |
73 | 73 | $this->post($this->url(self::ENDPOINT) . '/' . $split_id . '/subaccount/add', $payload); |
74 | 74 | return $this; |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | * @return Split |
83 | 83 | * @link https://paystack.com/docs/api/#split-remove-subaccount |
84 | 84 | */ |
85 | - public function removeSubaccount(string $split_id, array $payload = []): self |
|
85 | + public function removeSubaccount(string $split_id, array $payload = [ ]): self |
|
86 | 86 | { |
87 | 87 | $this->post($this->url(self::ENDPOINT) . '/' . $split_id . '/subaccount/remove', $payload); |
88 | 88 | return $this; |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | * @return Page |
28 | 28 | * @link https://paystack.com/docs/api/#page-list |
29 | 29 | */ |
30 | - public function list(array $query = []): self |
|
30 | + public function list(array $query = [ ]): self |
|
31 | 31 | { |
32 | 32 | $this->get($this->url(self::ENDPOINT), $query); |
33 | 33 | return $this; |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | * @return Page |
55 | 55 | * @link https://paystack.com/docs/api/#page-update |
56 | 56 | */ |
57 | - public function update(string $page_id, array $payload = []): self |
|
57 | + public function update(string $page_id, array $payload = [ ]): self |
|
58 | 58 | { |
59 | 59 | $this->put($this->url(self::ENDPOINT) . '/' . $page_id, $payload); |
60 | 60 | return $this; |
@@ -81,9 +81,9 @@ discard block |
||
81 | 81 | * @return Page |
82 | 82 | * @link https://paystack.com/docs/api/#page-add-products |
83 | 83 | */ |
84 | - public function addProduct(int $page_id, array $payload = []): self |
|
84 | + public function addProduct(int $page_id, array $payload = [ ]): self |
|
85 | 85 | { |
86 | - $this->post($this->url(self::ENDPOINT) . '/' .$page_id. '/product', $payload); |
|
86 | + $this->post($this->url(self::ENDPOINT) . '/' . $page_id . '/product', $payload); |
|
87 | 87 | return $this; |
88 | 88 | } |
89 | 89 | } |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | * @return Invoice |
27 | 27 | * @link https://paystack.com/docs/api/#invoice-list |
28 | 28 | */ |
29 | - public function list(array $query = []): self |
|
29 | + public function list(array $query = [ ]): self |
|
30 | 30 | { |
31 | 31 | $this->get($this->url(self::ENDPOINT), $query); |
32 | 32 | return $this; |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | * @return Invoice |
105 | 105 | * @link https://paystack.com/docs/api/#invoice-update |
106 | 106 | */ |
107 | - public function update(string $invoice_id, array $payload = []): self |
|
107 | + public function update(string $invoice_id, array $payload = [ ]): self |
|
108 | 108 | { |
109 | 109 | $this->put($this->url(self::ENDPOINT) . '/' . $invoice_id, $payload); |
110 | 110 | return $this; |
@@ -27,7 +27,7 @@ |
||
27 | 27 | * @return DedicatedAccount |
28 | 28 | * @link |
29 | 29 | */ |
30 | - public function list(array $query = []): self |
|
30 | + public function list(array $query = [ ]): self |
|
31 | 31 | { |
32 | 32 | $this->get($this->url(self::ENDPOINT), $query); |
33 | 33 | return $this; |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | */ |
29 | 29 | public function createBulk(array $payload): self |
30 | 30 | { |
31 | - $this->post($this->url(self::ENDPOINT). '/bulk', $payload); |
|
31 | + $this->post($this->url(self::ENDPOINT) . '/bulk', $payload); |
|
32 | 32 | return $this; |
33 | 33 | } |
34 | 34 | |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | * @return TransferRecipent |
40 | 40 | * @link https://paystack.com/docs/api/#transfer-recipient-list |
41 | 41 | */ |
42 | - public function list(array $query = []): self |
|
42 | + public function list(array $query = [ ]): self |
|
43 | 43 | { |
44 | 44 | $this->get($this->url(self::ENDPOINT), $query); |
45 | 45 | return $this; |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | * @return TransferRecipent |
67 | 67 | * @link https://paystack.com/docs/api/#transfer-recipient-update |
68 | 68 | */ |
69 | - public function update(string $recipient_code, array $payload = []): self |
|
69 | + public function update(string $recipient_code, array $payload = [ ]): self |
|
70 | 70 | { |
71 | 71 | $this->put($this->url(self::ENDPOINT) . '/' . $recipient_code, $payload); |
72 | 72 | return $this; |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | * @return Subscription |
27 | 27 | * @link https://paystack.com/docs/api/#suzbscription-list |
28 | 28 | */ |
29 | - public function list(array $query = []): self |
|
29 | + public function list(array $query = [ ]): self |
|
30 | 30 | { |
31 | 31 | $this->get($this->url(self::ENDPOINT), $query); |
32 | 32 | return $this; |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | */ |
55 | 55 | public function enable(array $payload): self |
56 | 56 | { |
57 | - $this->post($this->url(self::ENDPOINT). '/enable', $payload); |
|
57 | + $this->post($this->url(self::ENDPOINT) . '/enable', $payload); |
|
58 | 58 | return $this; |
59 | 59 | } |
60 | 60 | |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | */ |
68 | 68 | public function disable(array $payload): self |
69 | 69 | { |
70 | - $this->post($this->url(self::ENDPOINT). '/disable', $payload); |
|
70 | + $this->post($this->url(self::ENDPOINT) . '/disable', $payload); |
|
71 | 71 | return $this; |
72 | 72 | } |
73 | 73 | } |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | * @return Plan |
27 | 27 | * @link https://paystack.com/docs/api/#plan-list |
28 | 28 | */ |
29 | - public function list(array $query = []): self |
|
29 | + public function list(array $query = [ ]): self |
|
30 | 30 | { |
31 | 31 | $this->get($this->url(self::ENDPOINT), $query); |
32 | 32 | return $this; |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | * @return Plan |
54 | 54 | * @link https://paystack.com/docs/api/#plan-update |
55 | 55 | */ |
56 | - public function update(string $plan_id, array $payload = []): self |
|
56 | + public function update(string $plan_id, array $payload = [ ]): self |
|
57 | 57 | { |
58 | 58 | $this->put($this->url(self::ENDPOINT) . '/' . $plan_id, $payload); |
59 | 59 | return $this; |