mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-03 20:14:31 +00:00
Fix code quality with rector [skip ci]
This commit is contained in:
@@ -45,7 +45,7 @@ class FrontpageChartGenerator
|
||||
private readonly BudgetLimitRepositoryInterface $blRepository;
|
||||
private readonly BudgetRepositoryInterface $budgetRepository;
|
||||
private Carbon $end;
|
||||
private string $monthAndDayFormat;
|
||||
private string $monthAndDayFormat = '';
|
||||
private Carbon $start;
|
||||
|
||||
/**
|
||||
@@ -56,7 +56,6 @@ class FrontpageChartGenerator
|
||||
$this->budgetRepository = app(BudgetRepositoryInterface::class);
|
||||
$this->blRepository = app(BudgetLimitRepositoryInterface::class);
|
||||
$this->opsRepository = app(OperationsRepositoryInterface::class);
|
||||
$this->monthAndDayFormat = '';
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -192,7 +191,7 @@ class FrontpageChartGenerator
|
||||
Log::debug(sprintf('Process spent row (%s)', $entry['currency_code']));
|
||||
$data = $this->processRow($data, $budget, $limit, $entry);
|
||||
}
|
||||
if (!($entry['currency_id'] === $limit->transaction_currency_id || $usePrimary)) {
|
||||
if ($entry['currency_id'] !== $limit->transaction_currency_id && !$usePrimary) {
|
||||
Log::debug(sprintf('Skipping spent row (%s).', $entry['currency_code']));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user