@@ -24,8 +24,8 @@ discard block |
||
24 | 24 | protected $defer = false; |
25 | 25 | |
26 | 26 | /** |
27 | - * Publishes all the config file this package needs to function |
|
28 | - */ |
|
27 | + * Publishes all the config file this package needs to function |
|
28 | + */ |
|
29 | 29 | public function boot() |
30 | 30 | { |
31 | 31 | $config = realpath(__DIR__.'/../resources/config/paystack.php'); |
@@ -36,8 +36,8 @@ discard block |
||
36 | 36 | } |
37 | 37 | |
38 | 38 | /** |
39 | - * Register the application services. |
|
40 | - */ |
|
39 | + * Register the application services. |
|
40 | + */ |
|
41 | 41 | public function register() |
42 | 42 | { |
43 | 43 | $this->app->bind('laravel-paystack', function () { |
@@ -48,9 +48,9 @@ discard block |
||
48 | 48 | } |
49 | 49 | |
50 | 50 | /** |
51 | - * Get the services provided by the provider |
|
52 | - * @return array |
|
53 | - */ |
|
51 | + * Get the services provided by the provider |
|
52 | + * @return array |
|
53 | + */ |
|
54 | 54 | public function provides() |
55 | 55 | { |
56 | 56 | return ['laravel-paystack']; |
@@ -102,7 +102,6 @@ |
||
102 | 102 | |
103 | 103 | |
104 | 104 | /** |
105 | - |
|
106 | 105 | * Initiate a payment request to Paystack |
107 | 106 | * Included the option to pass the payload to this method for situations |
108 | 107 | * when the payload is built on the fly (not passed to the controller from a view) |
@@ -704,8 +704,9 @@ |
||
704 | 704 | */ |
705 | 705 | public function getBanks(?string $country, int $per_page = 50, bool $use_cursor = false) |
706 | 706 | { |
707 | - if (!$country) |
|
708 | - $country = request()->country ?? 'nigeria'; |
|
707 | + if (!$country) { |
|
708 | + $country = request()->country ?? 'nigeria'; |
|
709 | + } |
|
709 | 710 | |
710 | 711 | $this->setRequestOptions(); |
711 | 712 | return $this->setHttpResponse("/bank/?country=" . $country . "&use_cursor=" . $use_cursor . "&perPage=" . (int) $per_page, "GET")->getResponse(); |