Revert "apply rector rules for exports"

This reverts commit 3adf3625
This commit is contained in:
Julien Fastré 2023-06-18 11:57:26 +02:00
parent c52ba06ea0
commit 960acb8c0a
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB
167 changed files with 51 additions and 672 deletions

View File

@ -62,6 +62,7 @@ class BirthdateFilter implements ExportElementValidatedInterface, FilterInterfac
{ {
$builder->add('date_from', DateType::class, [ $builder->add('date_from', DateType::class, [
'label' => 'Born after this date', 'label' => 'Born after this date',
'data' => new DateTime(),
'attr' => ['class' => 'datepicker'], 'attr' => ['class' => 'datepicker'],
'widget' => 'single_text', 'widget' => 'single_text',
'format' => 'dd-MM-yyyy', 'format' => 'dd-MM-yyyy',
@ -69,15 +70,12 @@ class BirthdateFilter implements ExportElementValidatedInterface, FilterInterfac
$builder->add('date_to', DateType::class, [ $builder->add('date_to', DateType::class, [
'label' => 'Born before this date', 'label' => 'Born before this date',
'data' => new DateTime(),
'attr' => ['class' => 'datepicker'], 'attr' => ['class' => 'datepicker'],
'widget' => 'single_text', 'widget' => 'single_text',
'format' => 'dd-MM-yyyy', 'format' => 'dd-MM-yyyy',
]); ]);
} }
public function getFormDefaultData(): array
{
return ['date_from' => new DateTime(), 'date_to' => new DateTime()];
}
// here, we create a simple string which will describe the action of // here, we create a simple string which will describe the action of
// the filter in the Response // the filter in the Response

View File

@ -36,10 +36,6 @@ class CountPerson implements ExportInterface
{ {
// this export does not add any form // this export does not add any form
} }
public function getFormDefaultData(): array
{
return [];
}
public function getAllowedFormattersTypes() public function getAllowedFormattersTypes()
{ {

View File

@ -40,10 +40,6 @@ class ByActivityNumberAggregator implements AggregatorInterface
{ {
// No form needed // No form needed
} }
public function getFormDefaultData(): array
{
return [];
}
public function getLabels($key, array $values, $data) public function getLabels($key, array $values, $data)
{ {

View File

@ -52,10 +52,6 @@ class ByCreatorAggregator implements AggregatorInterface
{ {
// no form // no form
} }
public function getFormDefaultData(): array
{
return [];
}
public function getLabels($key, array $values, $data) public function getLabels($key, array $values, $data)
{ {

View File

@ -57,10 +57,6 @@ class BySocialActionAggregator implements AggregatorInterface
{ {
// no form // no form
} }
public function getFormDefaultData(): array
{
return [];
}
public function getLabels($key, array $values, $data) public function getLabels($key, array $values, $data)
{ {

View File

@ -57,10 +57,6 @@ class BySocialIssueAggregator implements AggregatorInterface
{ {
// no form // no form
} }
public function getFormDefaultData(): array
{
return [];
}
public function getLabels($key, array $values, $data) public function getLabels($key, array $values, $data)
{ {

View File

@ -57,10 +57,6 @@ class ByThirdpartyAggregator implements AggregatorInterface
{ {
// no form // no form
} }
public function getFormDefaultData(): array
{
return [];
}
public function getLabels($key, array $values, $data) public function getLabels($key, array $values, $data)
{ {

View File

@ -57,10 +57,6 @@ class CreatorScopeAggregator implements AggregatorInterface
{ {
// no form // no form
} }
public function getFormDefaultData(): array
{
return [];
}
public function getLabels($key, array $values, $data) public function getLabels($key, array $values, $data)
{ {

View File

@ -75,12 +75,10 @@ class DateAggregator implements AggregatorInterface
'choices' => self::CHOICES, 'choices' => self::CHOICES,
'multiple' => false, 'multiple' => false,
'expanded' => true, 'expanded' => true,
'empty_data' => self::DEFAULT_CHOICE,
'data' => self::DEFAULT_CHOICE,
]); ]);
} }
public function getFormDefaultData(): array
{
return ['frequency' => self::DEFAULT_CHOICE];
}
public function getLabels($key, array $values, $data) public function getLabels($key, array $values, $data)
{ {

View File

@ -57,10 +57,6 @@ class LocationTypeAggregator implements AggregatorInterface
{ {
// no form // no form
} }
public function getFormDefaultData(): array
{
return [];
}
public function getLabels($key, array $values, $data) public function getLabels($key, array $values, $data)
{ {

View File

@ -60,10 +60,6 @@ class ActivityTypeAggregator implements AggregatorInterface
{ {
// no form required for this aggregator // no form required for this aggregator
} }
public function getFormDefaultData(): array
{
return [];
}
public function getLabels($key, array $values, $data): Closure public function getLabels($key, array $values, $data): Closure
{ {

View File

@ -58,10 +58,6 @@ class ActivityUserAggregator implements AggregatorInterface
{ {
// nothing to add // nothing to add
} }
public function getFormDefaultData(): array
{
return [];
}
public function getLabels($key, $values, $data): Closure public function getLabels($key, $values, $data): Closure
{ {

View File

@ -56,10 +56,6 @@ class ActivityUsersAggregator implements AggregatorInterface
{ {
// nothing to add on the form // nothing to add on the form
} }
public function getFormDefaultData(): array
{
return [];
}
public function getLabels($key, array $values, $data) public function getLabels($key, array $values, $data)
{ {

View File

@ -55,10 +55,6 @@ class ActivityUsersJobAggregator implements \Chill\MainBundle\Export\AggregatorI
{ {
// nothing to add in the form // nothing to add in the form
} }
public function getFormDefaultData(): array
{
return [];
}
public function getLabels($key, array $values, $data) public function getLabels($key, array $values, $data)
{ {

View File

@ -55,10 +55,6 @@ class ActivityUsersScopeAggregator implements \Chill\MainBundle\Export\Aggregato
{ {
// nothing to add in the form // nothing to add in the form
} }
public function getFormDefaultData(): array
{
return [];
}
public function getLabels($key, array $values, $data) public function getLabels($key, array $values, $data)
{ {

View File

@ -110,10 +110,6 @@ class ActivityReasonAggregator implements AggregatorInterface, ExportElementVali
] ]
); );
} }
public function getFormDefaultData(): array
{
return [];
}
public function getLabels($key, array $values, $data) public function getLabels($key, array $values, $data)
{ {

View File

@ -47,10 +47,6 @@ class SentReceivedAggregator implements AggregatorInterface
{ {
// No form needed // No form needed
} }
public function getFormDefaultData(): array
{
return [];
}
public function getLabels($key, array $values, $data): callable public function getLabels($key, array $values, $data): callable
{ {

View File

@ -39,10 +39,6 @@ class AvgActivityDuration implements ExportInterface, GroupedExportInterface
public function buildForm(FormBuilderInterface $builder) public function buildForm(FormBuilderInterface $builder)
{ {
} }
public function getFormDefaultData(): array
{
return [];
}
public function getAllowedFormattersTypes(): array public function getAllowedFormattersTypes(): array
{ {

View File

@ -40,10 +40,6 @@ class AvgActivityVisitDuration implements ExportInterface, GroupedExportInterfac
{ {
// TODO: Implement buildForm() method. // TODO: Implement buildForm() method.
} }
public function getFormDefaultData(): array
{
return [];
}
public function getAllowedFormattersTypes(): array public function getAllowedFormattersTypes(): array
{ {

View File

@ -39,10 +39,6 @@ class CountActivity implements ExportInterface, GroupedExportInterface
public function buildForm(FormBuilderInterface $builder) public function buildForm(FormBuilderInterface $builder)
{ {
} }
public function getFormDefaultData(): array
{
return [];
}
public function getAllowedFormattersTypes(): array public function getAllowedFormattersTypes(): array
{ {

View File

@ -40,10 +40,6 @@ class SumActivityDuration implements ExportInterface, GroupedExportInterface
{ {
// TODO: Implement buildForm() method. // TODO: Implement buildForm() method.
} }
public function getFormDefaultData(): array
{
return [];
}
public function getAllowedFormattersTypes(): array public function getAllowedFormattersTypes(): array
{ {

View File

@ -40,10 +40,6 @@ class SumActivityVisitDuration implements ExportInterface, GroupedExportInterfac
{ {
// TODO: Implement buildForm() method. // TODO: Implement buildForm() method.
} }
public function getFormDefaultData(): array
{
return [];
}
public function getAllowedFormattersTypes(): array public function getAllowedFormattersTypes(): array
{ {

View File

@ -35,10 +35,6 @@ class CountActivity implements ExportInterface, GroupedExportInterface
public function buildForm(FormBuilderInterface $builder) public function buildForm(FormBuilderInterface $builder)
{ {
} }
public function getFormDefaultData(): array
{
return [];
}
public function getAllowedFormattersTypes() public function getAllowedFormattersTypes()
{ {

View File

@ -53,10 +53,6 @@ class StatActivityDuration implements ExportInterface, GroupedExportInterface
public function buildForm(FormBuilderInterface $builder) public function buildForm(FormBuilderInterface $builder)
{ {
} }
public function getFormDefaultData(): array
{
return [];
}
public function getAllowedFormattersTypes() public function getAllowedFormattersTypes()
{ {

View File

@ -68,10 +68,6 @@ class ActivityTypeFilter implements FilterInterface
'expanded' => true, 'expanded' => true,
]); ]);
} }
public function getFormDefaultData(): array
{
return [];
}
public function describeAction($data, $format = 'string'): array public function describeAction($data, $format = 'string'): array
{ {

View File

@ -52,10 +52,6 @@ class ByCreatorFilter implements FilterInterface
'multiple' => true, 'multiple' => true,
]); ]);
} }
public function getFormDefaultData(): array
{
return [];
}
public function describeAction($data, $format = 'string'): array public function describeAction($data, $format = 'string'): array
{ {

View File

@ -60,10 +60,6 @@ class BySocialActionFilter implements FilterInterface
'multiple' => true, 'multiple' => true,
]); ]);
} }
public function getFormDefaultData(): array
{
return [];
}
public function describeAction($data, $format = 'string'): array public function describeAction($data, $format = 'string'): array
{ {

View File

@ -60,10 +60,6 @@ class BySocialIssueFilter implements FilterInterface
'multiple' => true, 'multiple' => true,
]); ]);
} }
public function getFormDefaultData(): array
{
return [];
}
public function describeAction($data, $format = 'string'): array public function describeAction($data, $format = 'string'): array
{ {

View File

@ -67,12 +67,10 @@ class EmergencyFilter implements FilterInterface
'choices' => self::CHOICES, 'choices' => self::CHOICES,
'multiple' => false, 'multiple' => false,
'expanded' => true, 'expanded' => true,
'empty_data' => self::DEFAULT_CHOICE,
'data' => self::DEFAULT_CHOICE,
]); ]);
} }
public function getFormDefaultData(): array
{
return ['accepted_emergency' => self::DEFAULT_CHOICE];
}
public function describeAction($data, $format = 'string'): array public function describeAction($data, $format = 'string'): array
{ {

View File

@ -44,10 +44,6 @@ class HasNoActivityFilter implements FilterInterface
{ {
//no form needed //no form needed
} }
public function getFormDefaultData(): array
{
return [];
}
public function describeAction($data, $format = 'string'): array public function describeAction($data, $format = 'string'): array
{ {

View File

@ -46,10 +46,6 @@ class LocationFilter implements FilterInterface
'label' => 'pick location', 'label' => 'pick location',
]); ]);
} }
public function getFormDefaultData(): array
{
return [];
}
public function describeAction($data, $format = 'string'): array public function describeAction($data, $format = 'string'): array
{ {

View File

@ -65,10 +65,6 @@ class LocationTypeFilter implements FilterInterface
//'label' => false, //'label' => false,
]); ]);
} }
public function getFormDefaultData(): array
{
return [];
}
public function describeAction($data, $format = 'string'): array public function describeAction($data, $format = 'string'): array
{ {

View File

@ -69,12 +69,9 @@ class SentReceivedFilter implements FilterInterface
'multiple' => false, 'multiple' => false,
'expanded' => true, 'expanded' => true,
'empty_data' => self::DEFAULT_CHOICE, 'empty_data' => self::DEFAULT_CHOICE,
'data' => self::DEFAULT_CHOICE,
]); ]);
} }
public function getFormDefaultData(): array
{
return ['accepted_sentreceived' => self::DEFAULT_CHOICE];
}
public function describeAction($data, $format = 'string'): array public function describeAction($data, $format = 'string'): array
{ {

View File

@ -61,10 +61,6 @@ class UserFilter implements FilterInterface
'label' => 'Creators', 'label' => 'Creators',
]); ]);
} }
public function getFormDefaultData(): array
{
return [];
}
public function describeAction($data, $format = 'string'): array public function describeAction($data, $format = 'string'): array
{ {

View File

@ -71,10 +71,6 @@ class UserScopeFilter implements FilterInterface
'expanded' => true, 'expanded' => true,
]); ]);
} }
public function getFormDefaultData(): array
{
return [];
}
public function describeAction($data, $format = 'string'): array public function describeAction($data, $format = 'string'): array
{ {

View File

@ -127,10 +127,6 @@ class ActivityDateFilter implements FilterInterface
} }
}); });
} }
public function getFormDefaultData(): array
{
return [];
}
public function describeAction($data, $format = 'string') public function describeAction($data, $format = 'string')
{ {

View File

@ -78,10 +78,6 @@ class ActivityTypeFilter implements ExportElementValidatedInterface, FilterInter
], ],
]); ]);
} }
public function getFormDefaultData(): array
{
return [];
}
public function describeAction($data, $format = 'string') public function describeAction($data, $format = 'string')
{ {

View File

@ -56,10 +56,6 @@ class ActivityUsersFilter implements FilterInterface
'label' => 'Users', 'label' => 'Users',
]); ]);
} }
public function getFormDefaultData(): array
{
return [];
}
public function describeAction($data, $format = 'string') public function describeAction($data, $format = 'string')
{ {

View File

@ -82,10 +82,6 @@ class ActivityReasonFilter implements ExportElementValidatedInterface, FilterInt
'expanded' => false, 'expanded' => false,
]); ]);
} }
public function getFormDefaultData(): array
{
return [];
}
public function describeAction($data, $format = 'string') public function describeAction($data, $format = 'string')
{ {

View File

@ -112,6 +112,7 @@ class PersonHavingActivityBetweenDateFilter implements ExportElementValidatedInt
{ {
$builder->add('date_from', DateType::class, [ $builder->add('date_from', DateType::class, [
'label' => 'Implied in an activity after this date', 'label' => 'Implied in an activity after this date',
'data' => new DateTime(),
'attr' => ['class' => 'datepicker'], 'attr' => ['class' => 'datepicker'],
'widget' => 'single_text', 'widget' => 'single_text',
'format' => 'dd-MM-yyyy', 'format' => 'dd-MM-yyyy',
@ -119,6 +120,7 @@ class PersonHavingActivityBetweenDateFilter implements ExportElementValidatedInt
$builder->add('date_to', DateType::class, [ $builder->add('date_to', DateType::class, [
'label' => 'Implied in an activity before this date', 'label' => 'Implied in an activity before this date',
'data' => new DateTime(),
'attr' => ['class' => 'datepicker'], 'attr' => ['class' => 'datepicker'],
'widget' => 'single_text', 'widget' => 'single_text',
'format' => 'dd-MM-yyyy', 'format' => 'dd-MM-yyyy',
@ -128,6 +130,7 @@ class PersonHavingActivityBetweenDateFilter implements ExportElementValidatedInt
'class' => ActivityReason::class, 'class' => ActivityReason::class,
'choice_label' => fn (ActivityReason $reason): ?string => $this->translatableStringHelper->localize($reason->getName()), 'choice_label' => fn (ActivityReason $reason): ?string => $this->translatableStringHelper->localize($reason->getName()),
'group_by' => fn (ActivityReason $reason): ?string => $this->translatableStringHelper->localize($reason->getCategory()->getName()), 'group_by' => fn (ActivityReason $reason): ?string => $this->translatableStringHelper->localize($reason->getCategory()->getName()),
'data' => $this->activityReasonRepository->findAll(),
'multiple' => true, 'multiple' => true,
'expanded' => false, 'expanded' => false,
'label' => 'Activity reasons for those activities', 'label' => 'Activity reasons for those activities',
@ -173,10 +176,6 @@ class PersonHavingActivityBetweenDateFilter implements ExportElementValidatedInt
} }
}); });
} }
public function getFormDefaultData(): array
{
return ['date_from' => new DateTime(), 'date_to' => new DateTime(), 'reasons' => $this->activityReasonRepository->findAll()];
}
public function describeAction($data, $format = 'string') public function describeAction($data, $format = 'string')
{ {

View File

@ -60,10 +60,6 @@ class UsersJobFilter implements FilterInterface
'expanded' => true, 'expanded' => true,
]); ]);
} }
public function getFormDefaultData(): array
{
return [];
}
public function describeAction($data, $format = 'string') public function describeAction($data, $format = 'string')
{ {

View File

@ -67,10 +67,6 @@ class UsersScopeFilter implements FilterInterface
'expanded' => true, 'expanded' => true,
]); ]);
} }
public function getFormDefaultData(): array
{
return [];
}
public function describeAction($data, $format = 'string') public function describeAction($data, $format = 'string')
{ {

View File

@ -50,10 +50,6 @@ class ByActivityTypeAggregator implements AggregatorInterface
{ {
// No form needed // No form needed
} }
public function getFormDefaultData(): array
{
return [];
}
public function getLabels($key, array $values, $data) public function getLabels($key, array $values, $data)
{ {

View File

@ -57,10 +57,6 @@ class ByUserJobAggregator implements AggregatorInterface
{ {
// nothing to add in the form // nothing to add in the form
} }
public function getFormDefaultData(): array
{
return [];
}
public function getLabels($key, array $values, $data) public function getLabels($key, array $values, $data)
{ {

View File

@ -57,10 +57,6 @@ class ByUserScopeAggregator implements AggregatorInterface
{ {
// nothing to add in the form // nothing to add in the form
} }
public function getFormDefaultData(): array
{
return [];
}
public function getLabels($key, array $values, $data) public function getLabels($key, array $values, $data)
{ {

View File

@ -34,10 +34,6 @@ class AvgAsideActivityDuration implements ExportInterface, GroupedExportInterfac
public function buildForm(FormBuilderInterface $builder) public function buildForm(FormBuilderInterface $builder)
{ {
} }
public function getFormDefaultData(): array
{
return [];
}
public function getAllowedFormattersTypes(): array public function getAllowedFormattersTypes(): array
{ {

View File

@ -34,10 +34,6 @@ class CountAsideActivity implements ExportInterface, GroupedExportInterface
public function buildForm(FormBuilderInterface $builder) public function buildForm(FormBuilderInterface $builder)
{ {
} }
public function getFormDefaultData(): array
{
return [];
}
public function getAllowedFormattersTypes(): array public function getAllowedFormattersTypes(): array
{ {

View File

@ -34,10 +34,6 @@ class SumAsideActivityDuration implements ExportInterface, GroupedExportInterfac
public function buildForm(FormBuilderInterface $builder) public function buildForm(FormBuilderInterface $builder)
{ {
} }
public function getFormDefaultData(): array
{
return [];
}
public function getAllowedFormattersTypes(): array public function getAllowedFormattersTypes(): array
{ {

View File

@ -76,10 +76,6 @@ class ByActivityTypeFilter implements FilterInterface
}, },
]); ]);
} }
public function getFormDefaultData(): array
{
return [];
}
public function describeAction($data, $format = 'string'): array public function describeAction($data, $format = 'string'): array
{ {

View File

@ -119,10 +119,6 @@ class ByDateFilter implements FilterInterface
} }
}); });
} }
public function getFormDefaultData(): array
{
return [];
}
public function describeAction($data, $format = 'string'): array public function describeAction($data, $format = 'string'): array
{ {

View File

@ -53,10 +53,6 @@ class ByUserFilter implements FilterInterface
'label' => 'Creators', 'label' => 'Creators',
]); ]);
} }
public function getFormDefaultData(): array
{
return [];
}
public function describeAction($data, $format = 'string'): array public function describeAction($data, $format = 'string'): array
{ {

View File

@ -60,10 +60,6 @@ class ByUserJobFilter implements FilterInterface
'expanded' => true, 'expanded' => true,
]); ]);
} }
public function getFormDefaultData(): array
{
return [];
}
public function describeAction($data, $format = 'string') public function describeAction($data, $format = 'string')
{ {

View File

@ -67,10 +67,6 @@ class ByUserScopeFilter implements FilterInterface
'expanded' => true, 'expanded' => true,
]); ]);
} }
public function getFormDefaultData(): array
{
return [];
}
public function describeAction($data, $format = 'string') public function describeAction($data, $format = 'string')
{ {

View File

@ -58,10 +58,6 @@ final class AgentAggregator implements AggregatorInterface
{ {
// no form // no form
} }
public function getFormDefaultData(): array
{
return [];
}
public function getLabels($key, array $values, $data): Closure public function getLabels($key, array $values, $data): Closure
{ {

View File

@ -59,10 +59,6 @@ class CancelReasonAggregator implements AggregatorInterface
{ {
// no form // no form
} }
public function getFormDefaultData(): array
{
return [];
}
public function getLabels($key, array $values, $data): Closure public function getLabels($key, array $values, $data): Closure
{ {

View File

@ -58,10 +58,6 @@ final class JobAggregator implements AggregatorInterface
{ {
// no form // no form
} }
public function getFormDefaultData(): array
{
return [];
}
public function getLabels($key, array $values, $data): Closure public function getLabels($key, array $values, $data): Closure
{ {

View File

@ -52,10 +52,6 @@ final class LocationAggregator implements AggregatorInterface
{ {
// no form // no form
} }
public function getFormDefaultData(): array
{
return [];
}
public function getLabels($key, array $values, $data): Closure public function getLabels($key, array $values, $data): Closure
{ {

View File

@ -58,10 +58,6 @@ final class LocationTypeAggregator implements AggregatorInterface
{ {
// no form // no form
} }
public function getFormDefaultData(): array
{
return [];
}
public function getLabels($key, array $values, $data): Closure public function getLabels($key, array $values, $data): Closure
{ {

View File

@ -40,10 +40,6 @@ class MonthYearAggregator implements AggregatorInterface
{ {
// No form needed // No form needed
} }
public function getFormDefaultData(): array
{
return [];
}
public function getLabels($key, array $values, $data): Closure public function getLabels($key, array $values, $data): Closure
{ {

View File

@ -58,10 +58,6 @@ final class ScopeAggregator implements AggregatorInterface
{ {
// no form // no form
} }
public function getFormDefaultData(): array
{
return [];
}
public function getLabels($key, array $values, $data): Closure public function getLabels($key, array $values, $data): Closure
{ {

View File

@ -56,10 +56,6 @@ class UrgencyAggregator implements AggregatorInterface
{ {
// no form // no form
} }
public function getFormDefaultData(): array
{
return [];
}
public function getLabels($key, array $values, $data): Closure public function getLabels($key, array $values, $data): Closure
{ {

View File

@ -36,10 +36,6 @@ class CountCalendars implements ExportInterface, GroupedExportInterface
{ {
// No form necessary // No form necessary
} }
public function getFormDefaultData(): array
{
return [];
}
public function getAllowedFormattersTypes(): array public function getAllowedFormattersTypes(): array
{ {

View File

@ -36,10 +36,6 @@ class StatCalendarAvgDuration implements ExportInterface, GroupedExportInterface
{ {
// no form needed // no form needed
} }
public function getFormDefaultData(): array
{
return [];
}
public function getAllowedFormattersTypes(): array public function getAllowedFormattersTypes(): array
{ {

View File

@ -36,10 +36,6 @@ class StatCalendarSumDuration implements ExportInterface, GroupedExportInterface
{ {
// no form needed // no form needed
} }
public function getFormDefaultData(): array
{
return [];
}
public function getAllowedFormattersTypes(): array public function getAllowedFormattersTypes(): array
{ {

View File

@ -63,10 +63,6 @@ class AgentFilter implements FilterInterface
'expanded' => true, 'expanded' => true,
]); ]);
} }
public function getFormDefaultData(): array
{
return [];
}
public function describeAction($data, $format = 'string'): array public function describeAction($data, $format = 'string'): array
{ {

View File

@ -67,10 +67,6 @@ class BetweenDatesFilter implements FilterInterface
'data' => new RollingDate(RollingDate::T_TODAY), 'data' => new RollingDate(RollingDate::T_TODAY),
]); ]);
} }
public function getFormDefaultData(): array
{
return [];
}
public function describeAction($data, $format = 'string'): array public function describeAction($data, $format = 'string'): array
{ {

View File

@ -69,12 +69,9 @@ class CalendarRangeFilter implements FilterInterface
'multiple' => false, 'multiple' => false,
'expanded' => true, 'expanded' => true,
'empty_data' => self::DEFAULT_CHOICE, 'empty_data' => self::DEFAULT_CHOICE,
'data' => self::DEFAULT_CHOICE,
]); ]);
} }
public function getFormDefaultData(): array
{
return ['hasCalendarRange' => self::DEFAULT_CHOICE];
}
public function describeAction($data, $format = 'string'): array public function describeAction($data, $format = 'string'): array
{ {

View File

@ -76,10 +76,6 @@ class JobFilter implements FilterInterface
'expanded' => true, 'expanded' => true,
]); ]);
} }
public function getFormDefaultData(): array
{
return [];
}
public function describeAction($data, $format = 'string'): array public function describeAction($data, $format = 'string'): array
{ {

View File

@ -76,10 +76,6 @@ class ScopeFilter implements FilterInterface
'expanded' => true, 'expanded' => true,
]); ]);
} }
public function getFormDefaultData(): array
{
return [];
}
public function describeAction($data, $format = 'string') public function describeAction($data, $format = 'string')
{ {

View File

@ -57,10 +57,6 @@ class AdministrativeLocationAggregator implements AggregatorInterface
{ {
// no form // no form
} }
public function getFormDefaultData(): array
{
return [];
}
public function getLabels($key, array $values, $data) public function getLabels($key, array $values, $data)
{ {

View File

@ -39,10 +39,6 @@ class ByActionNumberAggregator implements AggregatorInterface
{ {
// No form needed // No form needed
} }
public function getFormDefaultData(): array
{
return [];
}
public function getLabels($key, array $values, $data) public function getLabels($key, array $values, $data)
{ {

View File

@ -52,10 +52,6 @@ class ClosingMotiveAggregator implements AggregatorInterface
{ {
// no form // no form
} }
public function getFormDefaultData(): array
{
return [];
}
public function getLabels($key, array $values, $data) public function getLabels($key, array $values, $data)
{ {

View File

@ -48,10 +48,6 @@ class ConfidentialAggregator implements AggregatorInterface
{ {
// no form // no form
} }
public function getFormDefaultData(): array
{
return [];
}
public function getLabels($key, array $values, $data) public function getLabels($key, array $values, $data)
{ {

View File

@ -57,10 +57,6 @@ class CreatorJobAggregator implements AggregatorInterface
{ {
// No form needed // No form needed
} }
public function getFormDefaultData(): array
{
return [];
}
public function getLabels($key, array $values, $data) public function getLabels($key, array $values, $data)
{ {

View File

@ -84,10 +84,6 @@ final class DurationAggregator implements AggregatorInterface
'expanded' => true, 'expanded' => true,
]); ]);
} }
public function getFormDefaultData(): array
{
return [];
}
public function getLabels($key, array $values, $data) public function getLabels($key, array $values, $data)
{ {

View File

@ -48,10 +48,6 @@ class EmergencyAggregator implements AggregatorInterface
{ {
// no form // no form
} }
public function getFormDefaultData(): array
{
return [];
}
public function getLabels($key, array $values, $data) public function getLabels($key, array $values, $data)
{ {

View File

@ -61,10 +61,6 @@ final class EvaluationAggregator implements AggregatorInterface
{ {
// no form // no form
} }
public function getFormDefaultData(): array
{
return [];
}
public function getLabels($key, array $values, $data) public function getLabels($key, array $values, $data)
{ {

View File

@ -133,10 +133,6 @@ final class GeographicalUnitStatAggregator implements AggregatorInterface
'expanded' => true, 'expanded' => true,
]); ]);
} }
public function getFormDefaultData(): array
{
return [];
}
public function getLabels($key, array $values, $data) public function getLabels($key, array $values, $data)
{ {

View File

@ -48,10 +48,6 @@ class IntensityAggregator implements AggregatorInterface
{ {
// no form // no form
} }
public function getFormDefaultData(): array
{
return [];
}
public function getLabels($key, array $values, $data) public function getLabels($key, array $values, $data)
{ {

View File

@ -59,10 +59,6 @@ final class OriginAggregator implements AggregatorInterface
{ {
// no form // no form
} }
public function getFormDefaultData(): array
{
return [];
}
public function getLabels($key, array $values, $data) public function getLabels($key, array $values, $data)
{ {

View File

@ -81,14 +81,11 @@ final class ReferrerAggregator implements AggregatorInterface
{ {
$builder $builder
->add('date_calc', PickRollingDateType::class, [ ->add('date_calc', PickRollingDateType::class, [
'data' => new RollingDate(RollingDate::T_TODAY),
'label' => 'export.aggregator.course.by_referrer.Computation date for referrer', 'label' => 'export.aggregator.course.by_referrer.Computation date for referrer',
'required' => true, 'required' => true,
]); ]);
} }
public function getFormDefaultData(): array
{
return ['date_calc' => new RollingDate(RollingDate::T_TODAY)];
}
public function getLabels($key, array $values, $data) public function getLabels($key, array $values, $data)
{ {

View File

@ -88,14 +88,11 @@ class ReferrerScopeAggregator implements AggregatorInterface
public function buildForm(FormBuilderInterface $builder) public function buildForm(FormBuilderInterface $builder)
{ {
$builder->add('date_calc', PickRollingDateType::class, [ $builder->add('date_calc', PickRollingDateType::class, [
'data' => new RollingDate(RollingDate::T_TODAY),
'label' => 'export.aggregator.course.by_user_scope.Computation date for referrer', 'label' => 'export.aggregator.course.by_user_scope.Computation date for referrer',
'required' => true, 'required' => true,
]); ]);
} }
public function getFormDefaultData(): array
{
return ['date_calc' => new RollingDate(RollingDate::T_TODAY)];
}
public function getLabels($key, array $values, $data) public function getLabels($key, array $values, $data)
{ {

View File

@ -69,10 +69,6 @@ final class RequestorAggregator implements AggregatorInterface
{ {
// no form // no form
} }
public function getFormDefaultData(): array
{
return [];
}
public function getLabels($key, array $values, $data) public function getLabels($key, array $values, $data)
{ {

View File

@ -57,10 +57,6 @@ final class ScopeAggregator implements AggregatorInterface
{ {
// no form // no form
} }
public function getFormDefaultData(): array
{
return [];
}
public function getLabels($key, array $values, $data) public function getLabels($key, array $values, $data)
{ {

View File

@ -58,10 +58,6 @@ final class SocialActionAggregator implements AggregatorInterface
{ {
// no form // no form
} }
public function getFormDefaultData(): array
{
return [];
}
public function getLabels($key, array $values, $data) public function getLabels($key, array $values, $data)
{ {

View File

@ -58,10 +58,6 @@ final class SocialIssueAggregator implements AggregatorInterface
{ {
// no form // no form
} }
public function getFormDefaultData(): array
{
return [];
}
public function getLabels($key, array $values, $data) public function getLabels($key, array $values, $data)
{ {

View File

@ -76,11 +76,9 @@ final class StepAggregator implements AggregatorInterface
public function buildForm(FormBuilderInterface $builder) public function buildForm(FormBuilderInterface $builder)
{ {
$builder->add('on_date', PickRollingDateType::class, []); $builder->add('on_date', PickRollingDateType::class, [
} 'data' => new RollingDate(RollingDate::T_TODAY),
public function getFormDefaultData(): array ]);
{
return ['on_date' => new RollingDate(RollingDate::T_TODAY)];
} }
public function getLabels($key, array $values, $data) public function getLabels($key, array $values, $data)

View File

@ -57,10 +57,6 @@ final class UserJobAggregator implements AggregatorInterface
{ {
// no form // no form
} }
public function getFormDefaultData(): array
{
return [];
}
public function getLabels($key, array $values, $data) public function getLabels($key, array $values, $data)
{ {

View File

@ -75,12 +75,9 @@ class ByEndDateAggregator implements AggregatorInterface
'multiple' => false, 'multiple' => false,
'expanded' => true, 'expanded' => true,
'empty_data' => self::DEFAULT_CHOICE, 'empty_data' => self::DEFAULT_CHOICE,
'data' => self::DEFAULT_CHOICE,
]); ]);
} }
public function getFormDefaultData(): array
{
return ['frequency' => self::DEFAULT_CHOICE];
}
public function getLabels($key, array $values, $data) public function getLabels($key, array $values, $data)
{ {

View File

@ -75,12 +75,9 @@ class ByMaxDateAggregator implements AggregatorInterface
'multiple' => false, 'multiple' => false,
'expanded' => true, 'expanded' => true,
'empty_data' => self::DEFAULT_CHOICE, 'empty_data' => self::DEFAULT_CHOICE,
'data' => self::DEFAULT_CHOICE,
]); ]);
} }
public function getFormDefaultData(): array
{
return ['frequency' => self::DEFAULT_CHOICE];
}
public function getLabels($key, array $values, $data) public function getLabels($key, array $values, $data)
{ {

View File

@ -75,12 +75,9 @@ class ByStartDateAggregator implements AggregatorInterface
'multiple' => false, 'multiple' => false,
'expanded' => true, 'expanded' => true,
'empty_data' => self::DEFAULT_CHOICE, 'empty_data' => self::DEFAULT_CHOICE,
'data' => self::DEFAULT_CHOICE,
]); ]);
} }
public function getFormDefaultData(): array
{
return ['frequency' => self::DEFAULT_CHOICE];
}
public function getLabels($key, array $values, $data) public function getLabels($key, array $values, $data)
{ {

View File

@ -52,10 +52,6 @@ class EvaluationTypeAggregator implements AggregatorInterface
{ {
// no form // no form
} }
public function getFormDefaultData(): array
{
return [];
}
public function getLabels($key, array $values, $data) public function getLabels($key, array $values, $data)
{ {

View File

@ -48,10 +48,6 @@ class HavingEndDateAggregator implements AggregatorInterface
{ {
// No form needed // No form needed
} }
public function getFormDefaultData(): array
{
return [];
}
public function getLabels($key, array $values, $data) public function getLabels($key, array $values, $data)
{ {

View File

@ -72,11 +72,9 @@ class ChildrenNumberAggregator implements AggregatorInterface
public function buildForm(FormBuilderInterface $builder) public function buildForm(FormBuilderInterface $builder)
{ {
$builder->add('on_date', PickRollingDateType::class, []); $builder->add('on_date', PickRollingDateType::class, [
} 'data' => new RollingDate(RollingDate::T_TODAY),
public function getFormDefaultData(): array ]);
{
return ['on_date' => new RollingDate(RollingDate::T_TODAY)];
} }
public function getLabels($key, array $values, $data) public function getLabels($key, array $values, $data)

View File

@ -77,11 +77,9 @@ class CompositionAggregator implements AggregatorInterface
public function buildForm(FormBuilderInterface $builder) public function buildForm(FormBuilderInterface $builder)
{ {
$builder->add('on_date', PickRollingDateType::class, []); $builder->add('on_date', PickRollingDateType::class, [
} 'data' => new RollingDate(RollingDate::T_TODAY),
public function getFormDefaultData(): array ]);
{
return ['on_date' => new RollingDate(RollingDate::T_TODAY)];
} }
public function getLabels($key, array $values, $data) public function getLabels($key, array $values, $data)

View File

@ -50,15 +50,12 @@ final class AgeAggregator implements AggregatorInterface, ExportElementValidated
{ {
$builder->add('date_age_calculation', DateType::class, [ $builder->add('date_age_calculation', DateType::class, [
'label' => 'Calculate age in relation to this date', 'label' => 'Calculate age in relation to this date',
'data' => new DateTime(),
'attr' => ['class' => 'datepicker'], 'attr' => ['class' => 'datepicker'],
'widget' => 'single_text', 'widget' => 'single_text',
'format' => 'dd-MM-yyyy', 'format' => 'dd-MM-yyyy',
]); ]);
} }
public function getFormDefaultData(): array
{
return ['date_age_calculation' => new DateTime()];
}
public function getLabels($key, array $values, $data) public function getLabels($key, array $values, $data)
{ {

View File

@ -94,12 +94,9 @@ class ByHouseholdCompositionAggregator implements AggregatorInterface
{ {
$builder->add('date_calc', PickRollingDateType::class, [ $builder->add('date_calc', PickRollingDateType::class, [
'label' => 'export.aggregator.person.by_household_composition.Calc date', 'label' => 'export.aggregator.person.by_household_composition.Calc date',
'data' => new RollingDate(RollingDate::T_TODAY),
]); ]);
} }
public function getFormDefaultData(): array
{
return ['date_calc' => new RollingDate(RollingDate::T_TODAY)];
}
public function getLabels($key, array $values, $data) public function getLabels($key, array $values, $data)
{ {

View File

@ -108,10 +108,6 @@ final class CountryOfBirthAggregator implements AggregatorInterface, ExportEleme
'multiple' => false, 'multiple' => false,
]); ]);
} }
public function getFormDefaultData(): array
{
return [];
}
public function getLabels($key, array $values, $data) public function getLabels($key, array $values, $data)
{ {

View File

@ -48,10 +48,6 @@ final class GenderAggregator implements AggregatorInterface
public function buildForm(FormBuilderInterface $builder) public function buildForm(FormBuilderInterface $builder)
{ {
} }
public function getFormDefaultData(): array
{
return [];
}
public function getLabels($key, array $values, $data) public function getLabels($key, array $values, $data)
{ {

View File

@ -105,10 +105,6 @@ class GeographicalUnitAggregator implements AggregatorInterface
'expanded' => true, 'expanded' => true,
]); ]);
} }
public function getFormDefaultData(): array
{
return [];
}
public static function getDefaultAlias(): string public static function getDefaultAlias(): string
{ {

Some files were not shown because too many files have changed in this diff Show More