@@ -18,7 +18,7 @@ |
||
18 | 18 | */ |
19 | 19 | public function register(): void |
20 | 20 | { |
21 | - $this->app->singleton(AbstractFormRequest::class, function ($app) { |
|
21 | + $this->app->singleton(AbstractFormRequest::class, function($app) { |
|
22 | 22 | $routeParts = explode('@', $app['router']->currentRouteAction()); |
23 | 23 | $routeAction = end($routeParts); |
24 | 24 |
@@ -55,7 +55,7 @@ |
||
55 | 55 | $currencies = Currency::all(); |
56 | 56 | $exchangeRates = $exchangeRatesApiService->get('latest.json', null, ['base' => config('currency.default')]); |
57 | 57 | |
58 | - $currencies->each(function (Currency $currency) use ($exchangeRates): void { |
|
58 | + $currencies->each(function(Currency $currency) use ($exchangeRates): void { |
|
59 | 59 | if (array_key_exists($currency->getIsoAlpha(), $exchangeRates['rates'])) { |
60 | 60 | $currency->setAttribute('exchange_rate', $exchangeRates['rates'][$currency->getIsoAlpha()]); |
61 | 61 | $currency->save(); |