Test Failed
Push — master ( f0132d...64edb8 )
by
unknown
23:09 queued 17:03
created
src/Endpoints/Transaction.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function initialize(array $payload): self
15 15
     {
16
-        $this->post($this->url(self::ENDPOINT).'/initialize', $payload);
16
+        $this->post($this->url(self::ENDPOINT) . '/initialize', $payload);
17 17
 
18 18
         return $this;
19 19
     }
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      */
34 34
     public function verify(string $reference): self
35 35
     {
36
-        $this->get($this->url(self::ENDPOINT).'/verify/'.$reference);
36
+        $this->get($this->url(self::ENDPOINT) . '/verify/' . $reference);
37 37
 
38 38
         return $this;
39 39
     }
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      */
44 44
     public function status(string $reference = ''): string
45 45
     {
46
-        if (! empty($reference)) {
46
+        if (!empty($reference)) {
47 47
             return $this->verify($reference)->status();
48 48
         } else {
49 49
             return $this->response->json('data.status');
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      *
56 56
      * @link https://paystack.com/docs/api/#transaction-list
57 57
      */
58
-    public function list(array $query = []): self
58
+    public function list(array $query = [ ]): self
59 59
     {
60 60
         $this->get($this->url(self::ENDPOINT), $query);
61 61
 
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      */
70 70
     public function fetch(int $transaction_id): self
71 71
     {
72
-        $this->get($this->url(self::ENDPOINT).'/'.$transaction_id);
72
+        $this->get($this->url(self::ENDPOINT) . '/' . $transaction_id);
73 73
 
74 74
         return $this;
75 75
     }
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      */
82 82
     public function chargeAuthorization(array $payload): self
83 83
     {
84
-        $this->post($this->url(self::ENDPOINT).'/charge_authorization', $payload);
84
+        $this->post($this->url(self::ENDPOINT) . '/charge_authorization', $payload);
85 85
 
86 86
         return $this;
87 87
     }
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      */
94 94
     public function checkAuthorization(array $payload): self
95 95
     {
96
-        $this->post($this->url(self::ENDPOINT).'/check_authorization', $payload);
96
+        $this->post($this->url(self::ENDPOINT) . '/check_authorization', $payload);
97 97
 
98 98
         return $this;
99 99
     }
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
      */
106 106
     public function timeline(string $reference): self
107 107
     {
108
-        $this->get($this->url(self::ENDPOINT).'/timeline/'.$reference);
108
+        $this->get($this->url(self::ENDPOINT) . '/timeline/' . $reference);
109 109
 
110 110
         return $this;
111 111
     }
@@ -115,9 +115,9 @@  discard block
 block discarded – undo
115 115
      *
116 116
      * @link https://paystack.com/docs/api/#transaction-totals
117 117
      */
118
-    public function totals(array $query = []): self
118
+    public function totals(array $query = [ ]): self
119 119
     {
120
-        $this->get($this->url(self::ENDPOINT).'/totals', $query);
120
+        $this->get($this->url(self::ENDPOINT) . '/totals', $query);
121 121
 
122 122
         return $this;
123 123
     }
@@ -127,9 +127,9 @@  discard block
 block discarded – undo
127 127
      *
128 128
      * @link https://paystack.com/docs/api/#transaction-export
129 129
      */
130
-    public function export(array $query = []): self
130
+    public function export(array $query = [ ]): self
131 131
     {
132
-        $this->get($this->url(self::ENDPOINT).'/export', $query);
132
+        $this->get($this->url(self::ENDPOINT) . '/export', $query);
133 133
 
134 134
         return $this;
135 135
     }
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
      */
142 142
     public function partialDebit(array $payload): self
143 143
     {
144
-        $this->post($this->url(self::ENDPOINT).'/partial_debit', $payload);
144
+        $this->post($this->url(self::ENDPOINT) . '/partial_debit', $payload);
145 145
 
146 146
         return $this;
147 147
     }
Please login to merge, or discard this patch.
src/Helpers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (! function_exists('paystack')) {
3
+if (!function_exists('paystack')) {
4 4
     /**
5 5
      * @throws \Illuminate\Contracts\Container\BindingResolutionException
6 6
      */
Please login to merge, or discard this patch.