execute rector run on filters and aggregators

This commit is contained in:
2023-06-18 21:36:40 +02:00
parent 50de389bc7
commit 21f11fb034
179 changed files with 741 additions and 118 deletions

View File

@@ -94,7 +94,6 @@ class ReportList implements ExportElementValidatedInterface, ListInterface
$cf->getSlug();
}
// Add a checkbox to select fields
$builder->add('fields', ChoiceType::class, [
'multiple' => true,
'expanded' => true,
@@ -134,14 +133,16 @@ class ReportList implements ExportElementValidatedInterface, ListInterface
])],
]);
// add a date field for addresses
$builder->add('address_date', ChillDateType::class, [
'label' => 'Address valid at this date',
'data' => new DateTime(),
'required' => false,
'block_name' => 'list_export_form_address_date',
]);
}
public function getFormDefaultData(): array
{
return ['address_date' => new DateTime()];
}
public function getAllowedFormattersTypes()
{

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')
{