Passed
Pull Request — master (#263)
by
unknown
09:50
created
src/Provider/PaymentServiceProvider.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -49,14 +49,14 @@  discard block
 block discarded – undo
49 49
      */
50 50
     public function register()
51 51
     {
52
-        Request::overwrite('input', function ($key) {
52
+        Request::overwrite('input', function($key) {
53 53
             return \request($key);
54 54
         });
55 55
 
56 56
         /**
57 57
          * Bind to service container.
58 58
          */
59
-        $this->app->bind('shetabit-payment', function () {
59
+        $this->app->bind('shetabit-payment', function() {
60 60
             $config = config('payment') ?? [];
61 61
 
62 62
             return new Payment($config);
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         $this->registerEvents();
66 66
 
67 67
         // use blade to render redirection form
68
-        Payment::setRedirectionFormViewRenderer(function ($view, $action, $inputs, $method) {
68
+        Payment::setRedirectionFormViewRenderer(function($view, $action, $inputs, $method) {
69 69
             return Blade::render(
70 70
                 Str::replace('</form>', '@csrf</form>', file_get_contents($view)),
71 71
                 [
@@ -84,11 +84,11 @@  discard block
 block discarded – undo
84 84
      */
85 85
     public function registerEvents()
86 86
     {
87
-        Payment::addPurchaseListener(function ($driver, $invoice) {
87
+        Payment::addPurchaseListener(function($driver, $invoice) {
88 88
             event(new InvoicePurchasedEvent($driver, $invoice));
89 89
         });
90 90
 
91
-        Payment::addVerifyListener(function ($reciept, $driver, $invoice) {
91
+        Payment::addVerifyListener(function($reciept, $driver, $invoice) {
92 92
             event(new InvoiceVerifiedEvent($reciept, $driver, $invoice));
93 93
         });
94 94
     }
Please login to merge, or discard this patch.