@@ -45,20 +45,20 @@ |
||
| 45 | 45 | public function registerSchedule($schedule) |
| 46 | 46 | { |
| 47 | 47 | // Exchange service daily update when allowed by Settings |
| 48 | - $schedule->call(function () { |
|
| 48 | + $schedule->call(function() { |
|
| 49 | 49 | $cnb = $this->app->make('cnb'); |
| 50 | 50 | $cnb->updateTodayExchangeRates(); |
| 51 | 51 | |
| 52 | - })->daily()->when(function () { |
|
| 52 | + })->daily()->when(function() { |
|
| 53 | 53 | return !!Settings::get('exchange', true); |
| 54 | 54 | }); |
| 55 | 55 | |
| 56 | 56 | // PRIBOR service daily update when allowed by Settings |
| 57 | - $schedule->call(function () { |
|
| 57 | + $schedule->call(function() { |
|
| 58 | 58 | $cnb = $this->app->make('cnb'); |
| 59 | 59 | $cnb->updateTodayPriborRates(); |
| 60 | 60 | |
| 61 | - })->daily()->when(function () { |
|
| 61 | + })->daily()->when(function() { |
|
| 62 | 62 | return !!Settings::get('pribor', true); |
| 63 | 63 | }); |
| 64 | 64 | } |
@@ -6,12 +6,12 @@ |
||
| 6 | 6 | |
| 7 | 7 | class Settings extends Model |
| 8 | 8 | { |
| 9 | - public $implement = ['System.Behaviors.SettingsModel']; |
|
| 9 | + public $implement = ['System.Behaviors.SettingsModel']; |
|
| 10 | 10 | |
| 11 | - // A unique code |
|
| 12 | - public $settingsCode = 'vojtasvoboda_cnbrates_settings'; |
|
| 11 | + // A unique code |
|
| 12 | + public $settingsCode = 'vojtasvoboda_cnbrates_settings'; |
|
| 13 | 13 | |
| 14 | - // Reference to field configuration |
|
| 15 | - public $settingsFields = 'fields.yaml'; |
|
| 14 | + // Reference to field configuration |
|
| 15 | + public $settingsFields = 'fields.yaml'; |
|
| 16 | 16 | |
| 17 | 17 | } |
| 18 | 18 | \ No newline at end of file |