mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 01:06:46 +00:00
Clean up repositories and cron code.
This commit is contained in:
@@ -87,7 +87,7 @@ class MigrateToRules extends Command
|
||||
$currencyCode = $this->tryDecrypt($currencyPreference->data);
|
||||
|
||||
// try json decrypt just in case.
|
||||
if (\strlen($currencyCode) > 3) {
|
||||
if (strlen($currencyCode) > 3) {
|
||||
$currencyCode = json_decode($currencyCode) ?? 'EUR';
|
||||
}
|
||||
|
||||
|
@@ -57,9 +57,9 @@ class UpgradeDatabase extends Command
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
* @return mixed
|
||||
* @return int
|
||||
*/
|
||||
public function handle()
|
||||
public function handle(): int
|
||||
{
|
||||
$commands = [
|
||||
'firefly-iii:transaction-identifiers',
|
||||
@@ -83,5 +83,7 @@ class UpgradeDatabase extends Command
|
||||
$result = Artisan::output();
|
||||
echo $result;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user