Passed
Branch master (8a0687)
by Olayemi
13:53
created
Category
src/Endpoints/Balance.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      */
27 27
     public function ledger(): self
28 28
     {
29
-        $this->get($this->url(self::ENDPOINT). '/ledger');
29
+        $this->get($this->url(self::ENDPOINT) . '/ledger');
30 30
         return $this;
31 31
     }
32 32
 }
Please login to merge, or discard this patch.
src/Endpoints/Transfer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
      * @return Transfer
53 53
      * @link https://paystack.com/docs/api/#transfer-list
54 54
      */
55
-    public function list(array $query = []): self
55
+    public function list(array $query = [ ]): self
56 56
     {
57 57
         $this->get($this->url(self::ENDPOINT), $query);
58 58
         return $this;
Please login to merge, or discard this patch.
src/Endpoints/Refund.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
      * @return Refund
28 28
      * @link https://paystack.com/docs/api/#refund-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;
Please login to merge, or discard this patch.
src/Endpoints/SubAccount.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      * @return SubAccount
28 28
      * @link https://paystack.com/docs/api/#subaccount-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
 block discarded – undo
54 54
      * @return SubAccount
55 55
      * @link https://paystack.com/docs/api/#subaccount-update
56 56
      */
57
-    public function update(string $subaccount_id, array $payload = []): self
57
+    public function update(string $subaccount_id, array $payload = [ ]): self
58 58
     {
59 59
         $this->put($this->url(self::ENDPOINT) . '/' . $subaccount_id, $payload);
60 60
         return $this;
Please login to merge, or discard this patch.
src/Endpoints/Transaction.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      * @return Transaction
65 65
      * @link https://paystack.com/docs/api/#transaction-list
66 66
      */
67
-    public function list(array $query = []): self
67
+    public function list(array $query = [ ]): self
68 68
     {
69 69
         $this->get($this->url(self::ENDPOINT), $query);
70 70
         return $this;
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
      * @return Transaction
130 130
      * @link https://paystack.com/docs/api/#transaction-totals
131 131
      */
132
-    public function totals(array $query = []): self
132
+    public function totals(array $query = [ ]): self
133 133
     {
134 134
         $this->get($this->url(self::ENDPOINT) . '/totals', $query);
135 135
         return $this;
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
      * @return Transaction
143 143
      * @link https://paystack.com/docs/api/#transaction-export
144 144
      */
145
-    public function export(array $query = []): self
145
+    public function export(array $query = [ ]): self
146 146
     {
147 147
         $this->get($this->url(self::ENDPOINT) . '/export', $query);
148 148
         return $this;
Please login to merge, or discard this patch.
src/Endpoints/Customer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      * @return Customer
27 27
      * @link https://paystack.com/docs/api/#customer-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
 block discarded – undo
53 53
      * @return Customer
54 54
      * @link https://paystack.com/docs/api/#customer-update
55 55
      */
56
-    public function update(string $customer_code, array $payload = []): self
56
+    public function update(string $customer_code, array $payload = [ ]): self
57 57
     {
58 58
         $this->put($this->url(self::ENDPOINT) . '/' . $customer_code, $payload);
59 59
         return $this;
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      * @return Customer
68 68
      * @link https://paystack.com/docs/api/#customer-validate
69 69
      */
70
-    public function validate(string $customer_code, array $payload = []): self
70
+    public function validate(string $customer_code, array $payload = [ ]): self
71 71
     {
72 72
         $this->post($this->url(self::ENDPOINT) . '/' . $customer_code . '/identification', $payload);
73 73
         return $this;
Please login to merge, or discard this patch.
src/Endpoints/Settlement.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      * @return Settlement
14 14
      * @link https://paystack.com/docs/api/#page-list
15 15
      */
16
-    public function list(array $query = []): self
16
+    public function list(array $query = [ ]): self
17 17
     {
18 18
         $this->get($this->url(self::ENDPOINT), $query);
19 19
         return $this;
@@ -27,9 +27,9 @@  discard block
 block discarded – undo
27 27
      * @return Settlement
28 28
      * @link https://paystack.com/docs/api/#settlement-fetch
29 29
      */
30
-    public function fetch(string $settlement_id, array $query = []): self
30
+    public function fetch(string $settlement_id, array $query = [ ]): self
31 31
     {
32
-        $this->get($this->url(self::ENDPOINT) . '/' . $settlement_id .'/transactions', $query);
32
+        $this->get($this->url(self::ENDPOINT) . '/' . $settlement_id . '/transactions', $query);
33 33
         return $this;
34 34
     }
35 35
 }
Please login to merge, or discard this patch.
src/Endpoints/Endpoint.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      * @param array|string|null $query
75 75
      * @return Endpoint
76 76
      */
77
-    protected function get(string $url, $query = []): self
77
+    protected function get(string $url, $query = [ ]): self
78 78
     {
79 79
         $response = $this->paystack->getConnection()->get($url, $query);
80 80
 
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      * @param array $payload
91 91
      * @return Endpoint
92 92
      */
93
-    protected function post(string $url, array $payload = []): self
93
+    protected function post(string $url, array $payload = [ ]): self
94 94
     {
95 95
         $response = $this->paystack->getConnection()->post($url, $payload);
96 96
 
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
      * @param array $payload
107 107
      * @return Endpoint
108 108
      */
109
-    protected function put(string $url, array $payload = []): self
109
+    protected function put(string $url, array $payload = [ ]): self
110 110
     {
111 111
         $response = $this->paystack->getConnection()->put($url, $payload);
112 112
 
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      * @param array $payload
123 123
      * @return Endpoint
124 124
      */
125
-    protected function delete(string $url, array $payload = []): self
125
+    protected function delete(string $url, array $payload = [ ]): self
126 126
     {
127 127
         $response = $this->paystack->getConnection()->delete($url, $payload);
128 128
 
Please login to merge, or discard this patch.
src/Endpoints/Product.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      * @return Product
28 28
      * @link https://paystack.com/docs/api/#product-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
 block discarded – undo
54 54
      * @return Product
55 55
      * @link https://paystack.com/docs/api/#product-update
56 56
      */
57
-    public function update(string $product_id, array $payload = []): self
57
+    public function update(string $product_id, array $payload = [ ]): self
58 58
     {
59 59
         $this->put($this->url(self::ENDPOINT) . '/' . $product_id, $payload);
60 60
         return $this;
Please login to merge, or discard this patch.