Fix code quality with rector [skip ci]

This commit is contained in:
James Cole
2025-11-09 09:07:14 +01:00
parent 38691d6fdf
commit d2610be790
262 changed files with 873 additions and 1186 deletions

View File

@@ -41,17 +41,9 @@ class MonthReportGenerator implements ReportGeneratorInterface
private Collection $accounts;
private Collection $budgets;
private Carbon $end;
private array $expenses;
private array $expenses = [];
private Carbon $start;
/**
* MonthReportGenerator constructor.
*/
public function __construct()
{
$this->expenses = [];
}
/**
* Generates the report.
*
@@ -65,7 +57,7 @@ class MonthReportGenerator implements ReportGeneratorInterface
try {
$result = view(
'reports.budget.month',
compact('accountIds', 'budgetIds')
['accountIds' => $accountIds, 'budgetIds' => $budgetIds]
)
->with('start', $this->start)->with('end', $this->end)
->with('budgets', $this->budgets)