apply rector rules for exports

This commit is contained in:
2023-06-05 17:21:21 +02:00
parent ea77adc640
commit 3adf3625dc
168 changed files with 675 additions and 47 deletions

View File

@@ -67,14 +67,16 @@ class ReportDateFilter implements FilterInterface
{
$builder->add('date_from', PickRollingDateType::class, [
'label' => 'Report is after this date',
'data' => new RollingDate(RollingDate::T_YEAR_PREVIOUS_START),
]);
$builder->add('date_to', PickRollingDateType::class, [
'label' => 'Report is before this date',
'data' => new RollingDate(RollingDate::T_TODAY),
]);
}
public function getFormDefaultData(): array
{
return ['date_from' => new RollingDate(RollingDate::T_YEAR_PREVIOUS_START), 'date_to' => new RollingDate(RollingDate::T_TODAY)];
}
public function describeAction($data, $format = 'string')
{