@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | |
51 | 51 | protected function url(string $endpoint): string |
52 | 52 | { |
53 | - return Endpoint::BASE_URL.ltrim($endpoint, '/'); |
|
53 | + return Endpoint::BASE_URL . ltrim($endpoint, '/'); |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | /** |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | * @param array|string|null $query Optional query string parameters. |
60 | 60 | * @return self This instance for method chaining. |
61 | 61 | */ |
62 | - protected function get(string $url, array|string|null $query = []): self |
|
62 | + protected function get(string $url, array | string | null $query = [ ]): self |
|
63 | 63 | { |
64 | 64 | $response = $this->paystack->getConnection()->get($url, $query); |
65 | 65 | |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | * @param array $payload The data to be sent. |
75 | 75 | * @return self This instance for method chaining. |
76 | 76 | */ |
77 | - protected function post(string $url, array $payload = []): self |
|
77 | + protected function post(string $url, array $payload = [ ]): self |
|
78 | 78 | { |
79 | 79 | $response = $this->paystack->getConnection()->post($url, $payload); |
80 | 80 | |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | * @param array $payload The data to be sent. |
90 | 90 | * @return self This instance for method chaining. |
91 | 91 | */ |
92 | - protected function put(string $url, array $payload = []): self |
|
92 | + protected function put(string $url, array $payload = [ ]): self |
|
93 | 93 | { |
94 | 94 | $response = $this->paystack->getConnection()->put($url, $payload); |
95 | 95 | |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | * @param array $payload The data to be sent. |
105 | 105 | * @return self This instance for method chaining. |
106 | 106 | */ |
107 | - protected function delete(string $url, array $payload = []): self |
|
107 | + protected function delete(string $url, array $payload = [ ]): self |
|
108 | 108 | { |
109 | 109 | $response = $this->paystack->getConnection()->delete($url, $payload); |
110 | 110 |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | { |
15 | 15 | if ($this->app->runningInConsole()) { |
16 | 16 | $this->publishes([ |
17 | - __DIR__.'/../config/config.php' => config_path('paystack.php'), |
|
17 | + __DIR__ . '/../config/config.php' => config_path('paystack.php'), |
|
18 | 18 | ], 'config'); |
19 | 19 | } |
20 | 20 | $this->validator(); |
@@ -26,10 +26,10 @@ discard block |
||
26 | 26 | public function register(): void |
27 | 27 | { |
28 | 28 | // Automatically apply the package configuration |
29 | - $this->mergeConfigFrom(__DIR__.'/../config/config.php', 'paystack'); |
|
29 | + $this->mergeConfigFrom(__DIR__ . '/../config/config.php', 'paystack'); |
|
30 | 30 | |
31 | 31 | // Register the main class to use with the facade |
32 | - $this->app->bind('paystack', function () { |
|
32 | + $this->app->bind('paystack', function() { |
|
33 | 33 | |
34 | 34 | //validate required credentials |
35 | 35 | $config = config('paystack'); |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | |
45 | 45 | private function validator() |
46 | 46 | { |
47 | - Validator::macro('required_string', function ($attribute, $value, $arguments) { |
|
47 | + Validator::macro('required_string', function($attribute, $value, $arguments) { |
|
48 | 48 | return is_string($value) && !empty($value); |
49 | 49 | }); |
50 | 50 | } |