@@ -16,10 +16,10 @@ discard block |
||
16 | 16 | */ |
17 | 17 | public function boot() |
18 | 18 | { |
19 | - Blade::directive('time', function ($expression) { |
|
19 | + Blade::directive('time', function($expression) { |
|
20 | 20 | return "<?php echo strftime('%H:%M', date_create($expression)->getTimestamp()); ?>"; |
21 | 21 | }); |
22 | - Blade::directive('datetime', function ($expression) { |
|
22 | + Blade::directive('datetime', function($expression) { |
|
23 | 23 | return "<?php echo strftime('%A, %d.%m.%Y', date_create($expression)->getTimestamp()); ?>"; |
24 | 24 | }); |
25 | 25 | } |
@@ -32,12 +32,12 @@ discard block |
||
32 | 32 | public function register() |
33 | 33 | { |
34 | 34 | $this->app->bind('App\PaymentProvider\Klarna', function() { |
35 | - return new Klarna( config('paymentprovider.sofortConfigKey') ); |
|
35 | + return new Klarna(config('paymentprovider.sofortConfigKey')); |
|
36 | 36 | }); |
37 | 37 | |
38 | 38 | $this->app->bind('App\PaymentProvider\PayPal', function() { |
39 | 39 | return new PayPal( |
40 | - config('paymentprovider.payPalClientId'), // ClientID |
|
40 | + config('paymentprovider.payPalClientId'), // ClientID |
|
41 | 41 | config('paymentprovider.payPalClientSecret') // ClientSecret |
42 | 42 | ); |
43 | 43 | }); |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | { |
41 | 41 | $this->sofortApi->setAmount($purchase->total()); |
42 | 42 | $this->sofortApi->setCurrencyCode('EUR'); |
43 | - $this->sofortApi->setReason('#'.$purchase->id . ' Purchase'); |
|
43 | + $this->sofortApi->setReason('#' . $purchase->id . ' Purchase'); |
|
44 | 44 | $this->sofortApi->setSuccessUrl(route('ts.payment.successful', [ |
45 | 45 | 'purchase' => $purchase->random_id, |
46 | 46 | 'secret' => $purchase->payment_secret |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | |
53 | 53 | if ($this->sofortApi->isError()) { |
54 | 54 | // SOFORT-API didn't accept the data |
55 | - foreach($this->sofortApi->getErrors() as $error) { |
|
55 | + foreach ($this->sofortApi->getErrors() as $error) { |
|
56 | 56 | Log::error($error); |
57 | 57 | } |
58 | 58 | throw new PaymentProviderException("SOFORT got errors..."); |