@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | */ |
22 | 22 | public function boot() |
23 | 23 | { |
24 | - $this->loadViewsFrom(__DIR__ . '/../../resources/views', 'shetabitPayment'); |
|
24 | + $this->loadViewsFrom(__DIR__.'/../../resources/views', 'shetabitPayment'); |
|
25 | 25 | |
26 | 26 | /** |
27 | 27 | * Configurations that needs to be done by user. |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | */ |
39 | 39 | $this->publishes( |
40 | 40 | [ |
41 | - __DIR__ . '/../../resources/views' => resource_path('views/vendor/shetabitPayment'), |
|
41 | + __DIR__.'/../../resources/views' => resource_path('views/vendor/shetabitPayment'), |
|
42 | 42 | ], |
43 | 43 | 'payment-views' |
44 | 44 | ); |
@@ -51,14 +51,14 @@ discard block |
||
51 | 51 | */ |
52 | 52 | public function register() |
53 | 53 | { |
54 | - Request::overwrite('input', function ($key) { |
|
54 | + Request::overwrite('input', function($key) { |
|
55 | 55 | return \request($key); |
56 | 56 | }); |
57 | 57 | |
58 | 58 | /** |
59 | 59 | * Bind to service container. |
60 | 60 | */ |
61 | - $this->app->bind('shetabit-payment', function () { |
|
61 | + $this->app->bind('shetabit-payment', function() { |
|
62 | 62 | $config = config('payment') ?? []; |
63 | 63 | |
64 | 64 | return new Payment($config); |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | $this->registerEvents(); |
68 | 68 | |
69 | 69 | // use blade to render redirection form |
70 | - Payment::setRedirectionFormViewRenderer(function ($view, $action, $inputs, $method) { |
|
70 | + Payment::setRedirectionFormViewRenderer(function($view, $action, $inputs, $method) { |
|
71 | 71 | if ($this->existCustomRedirectFormView()) { |
72 | 72 | return $this->loadNormalRedirectForm($action, $inputs, $method); |
73 | 73 | } |
@@ -89,11 +89,11 @@ discard block |
||
89 | 89 | */ |
90 | 90 | public function registerEvents() |
91 | 91 | { |
92 | - Payment::addPurchaseListener(function ($driver, $invoice) { |
|
92 | + Payment::addPurchaseListener(function($driver, $invoice) { |
|
93 | 93 | event(new InvoicePurchasedEvent($driver, $invoice)); |
94 | 94 | }); |
95 | 95 | |
96 | - Payment::addVerifyListener(function ($reciept, $driver, $invoice) { |
|
96 | + Payment::addVerifyListener(function($reciept, $driver, $invoice) { |
|
97 | 97 | event(new InvoiceVerifiedEvent($reciept, $driver, $invoice)); |
98 | 98 | }); |
99 | 99 | } |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | */ |
106 | 106 | private function existCustomRedirectFormView() |
107 | 107 | { |
108 | - return file_exists(resource_path('views/vendor/shetabitPayment') . '/redirectForm.blade.php'); |
|
108 | + return file_exists(resource_path('views/vendor/shetabitPayment').'/redirectForm.blade.php'); |
|
109 | 109 | } |
110 | 110 | |
111 | 111 | /** |