Passed
Pull Request — master (#326)
by
unknown
09:20
created
src/Provider/PaymentServiceProvider.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         );
@@ -54,14 +54,14 @@  discard block
 block discarded – undo
54 54
         // Merge default config with user's config
55 55
         $this->mergeConfigFrom(Payment::getDefaultConfigPath(), 'payment');
56 56
 
57
-        Request::overwrite('input', function ($key) {
57
+        Request::overwrite('input', function($key) {
58 58
             return \request($key);
59 59
         });
60 60
 
61 61
         /**
62 62
          * Bind to service container.
63 63
          */
64
-        $this->app->bind('shetabit-payment', function () {
64
+        $this->app->bind('shetabit-payment', function() {
65 65
             $config = config('payment') ?? [];
66 66
 
67 67
             return new Payment($config);
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
         $this->registerEvents();
71 71
 
72 72
         // use blade to render redirection form
73
-        Payment::setRedirectionFormViewRenderer(function ($view, $action, $inputs, $method) {
73
+        Payment::setRedirectionFormViewRenderer(function($view, $action, $inputs, $method) {
74 74
             if ($this->existCustomRedirectFormView()) {
75 75
                 return $this->loadNormalRedirectForm($action, $inputs, $method);
76 76
             }
@@ -92,11 +92,11 @@  discard block
 block discarded – undo
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,7 +108,7 @@  discard block
 block discarded – undo
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
 
114 114
     /**
Please login to merge, or discard this patch.