@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | */ |
16 | 16 | public function register() |
17 | 17 | { |
18 | - $this->app->singleton('merchant', function () { |
|
18 | + $this->app->singleton('merchant', function() { |
|
19 | 19 | return new Client(config('revolut-merchant.api_key')); |
20 | 20 | }); |
21 | 21 | } |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | __DIR__ . '/../config/revolut-merchant.php' => config_path('revolut-merchant.php') |
32 | 32 | ]); |
33 | 33 | |
34 | - Blade::directive('revolutMerchantScript', function () { |
|
34 | + Blade::directive('revolutMerchantScript', function() { |
|
35 | 35 | |
36 | 36 | $src = config('revolut-merchant.sandbox', true) |
37 | 37 | ? 'https://sandbox-merchant.revolut.com/embed.js' |
@@ -20,7 +20,7 @@ |
||
20 | 20 | */ |
21 | 21 | public function create(array $json) |
22 | 22 | { |
23 | - return $this->client->post(self::ENDPOINT, ['json' => $json]); |
|
23 | + return $this->client->post(self::ENDPOINT, [ 'json' => $json ]); |
|
24 | 24 | } |
25 | 25 | |
26 | 26 | /** |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | * @return array The response body |
90 | 90 | * @throws \tbclla\RevolutMerchant\Exceptions\MerchantException |
91 | 91 | */ |
92 | - public function post(string $endpoint, array $options = []) |
|
92 | + public function post(string $endpoint, array $options = [ ]) |
|
93 | 93 | { |
94 | 94 | return $this->request('POST', $endpoint, $options); |
95 | 95 | } |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | * @return array The response body |
103 | 103 | * @throws \tbclla\RevolutMerchant\Exceptions\MerchantException |
104 | 104 | */ |
105 | - public function get(string $endpoint, array $options = []) |
|
105 | + public function get(string $endpoint, array $options = [ ]) |
|
106 | 106 | { |
107 | 107 | return $this->request('GET', $endpoint, $options); |
108 | 108 | } |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | * @param array $options |
158 | 158 | * @return array |
159 | 159 | */ |
160 | - private function buildOptions(array $options = []) |
|
160 | + private function buildOptions(array $options = [ ]) |
|
161 | 161 | { |
162 | 162 | return array_merge($options, [ |
163 | 163 | 'headers' => [ |