@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | */ |
| 19 | 19 | public function boot() |
| 20 | 20 | { |
| 21 | - $this->loadViewsFrom(__DIR__ . '/../../resources/views', 'shetabitPayment'); |
|
| 21 | + $this->loadViewsFrom(__DIR__.'/../../resources/views', 'shetabitPayment'); |
|
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | 24 | * Configurations that needs to be done by user. |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | */ |
| 36 | 36 | $this->publishes( |
| 37 | 37 | [ |
| 38 | - __DIR__ . '/../../resources/views' => resource_path('views/vendor/shetabitPayment'), |
|
| 38 | + __DIR__.'/../../resources/views' => resource_path('views/vendor/shetabitPayment'), |
|
| 39 | 39 | ], |
| 40 | 40 | 'payment-views' |
| 41 | 41 | ); |
@@ -48,14 +48,14 @@ discard block |
||
| 48 | 48 | */ |
| 49 | 49 | public function register() |
| 50 | 50 | { |
| 51 | - Request::overwrite('input', function ($key) { |
|
| 51 | + Request::overwrite('input', function($key) { |
|
| 52 | 52 | return \request($key); |
| 53 | 53 | }); |
| 54 | 54 | |
| 55 | 55 | /** |
| 56 | 56 | * Bind to service container. |
| 57 | 57 | */ |
| 58 | - $this->app->bind('shetabit-payment', function () { |
|
| 58 | + $this->app->bind('shetabit-payment', function() { |
|
| 59 | 59 | $config = config('payment') ?? []; |
| 60 | 60 | |
| 61 | 61 | return new Payment($config); |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | $this->registerEvents(); |
| 65 | 65 | |
| 66 | 66 | // use blade to render redirection form |
| 67 | - Payment::setRedirectionFormViewRenderer(function ($view, $action, $inputs, $method) { |
|
| 67 | + Payment::setRedirectionFormViewRenderer(function($view, $action, $inputs, $method) { |
|
| 68 | 68 | if ($this->existCustomRedirectFormView()) { |
| 69 | 69 | return view('shetabitPayment::redirectForm')->with( |
| 70 | 70 | [ |
@@ -92,11 +92,11 @@ discard block |
||
| 92 | 92 | */ |
| 93 | 93 | public function registerEvents() |
| 94 | 94 | { |
| 95 | - Payment::addPurchaseListener(function ($driver, $invoice) { |
|
| 95 | + Payment::addPurchaseListener(function($driver, $invoice) { |
|
| 96 | 96 | event(new InvoicePurchasedEvent($driver, $invoice)); |
| 97 | 97 | }); |
| 98 | 98 | |
| 99 | - Payment::addVerifyListener(function ($reciept, $driver, $invoice) { |
|
| 99 | + Payment::addVerifyListener(function($reciept, $driver, $invoice) { |
|
| 100 | 100 | event(new InvoiceVerifiedEvent($reciept, $driver, $invoice)); |
| 101 | 101 | }); |
| 102 | 102 | } |
@@ -108,6 +108,6 @@ discard block |
||
| 108 | 108 | */ |
| 109 | 109 | private function existCustomRedirectFormView() |
| 110 | 110 | { |
| 111 | - return file_exists(resource_path('views/vendor/shetabitPayment') . '/redirectForm.blade.php'); |
|
| 111 | + return file_exists(resource_path('views/vendor/shetabitPayment').'/redirectForm.blade.php'); |
|
| 112 | 112 | } |
| 113 | 113 | } |