mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-10 12:24:50 +00:00
Fix code quality with rector [skip ci]
This commit is contained in:
@@ -39,7 +39,7 @@ use Illuminate\Support\Facades\Log;
|
||||
*/
|
||||
class AccountBalanceGrouped
|
||||
{
|
||||
private array $accountIds;
|
||||
private array $accountIds = [];
|
||||
private string $carbonFormat;
|
||||
private readonly ExchangeRateConverter $converter;
|
||||
private array $currencies = [];
|
||||
@@ -52,7 +52,6 @@ class AccountBalanceGrouped
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->accountIds = [];
|
||||
$this->converter = app(ExchangeRateConverter::class);
|
||||
}
|
||||
|
||||
@@ -258,7 +257,7 @@ class AccountBalanceGrouped
|
||||
try {
|
||||
$rate = $this->converter->getCurrencyRate($currency, $this->primary, $date);
|
||||
} catch (FireflyException $e) {
|
||||
app('log')->error($e->getMessage());
|
||||
Log::error($e->getMessage());
|
||||
$rate = '1';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user