Fix code quality with rector [skip ci]

This commit is contained in:
James Cole
2025-11-09 09:08:03 +01:00
parent d2610be790
commit 68183a0a0e
209 changed files with 1021 additions and 1248 deletions

View File

@@ -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';
}