Rector changes and immplementations of required methods

This commit is contained in:
2025-05-22 17:47:07 +02:00
parent 053b92b77c
commit 17db59d221
1138 changed files with 2656 additions and 2616 deletions

View File

@@ -59,7 +59,7 @@ class CSVFormatter implements FormatterInterface
/**
* @uses appendAggregatorForm
*/
public function buildForm(FormBuilderInterface $builder, $exportAlias, array $aggregatorAliases)
public function buildForm(FormBuilderInterface $builder, $exportAlias, array $aggregatorAliases): void
{
$aggregators = $this->exportManager->getAggregators($aggregatorAliases);
$nb = \count($aggregatorAliases);
@@ -119,7 +119,7 @@ class CSVFormatter implements FormatterInterface
array $exportData,
array $filtersData,
array $aggregatorsData,
) {
): \Symfony\Component\HttpFoundation\Response {
$this->result = $result;
$this->orderingHeaders($formatterData);
$this->export = $this->exportManager->getExport($exportAlias);
@@ -145,7 +145,7 @@ class CSVFormatter implements FormatterInterface
return 'tabular';
}
protected function gatherLabels()
protected function gatherLabels(): array
{
return array_merge(
$this->gatherLabelsFromAggregators(),
@@ -345,7 +345,7 @@ class CSVFormatter implements FormatterInterface
*
* @param string $nbAggregators
*/
private function appendAggregatorForm(FormBuilderInterface $builder, $nbAggregators)
private function appendAggregatorForm(FormBuilderInterface $builder, $nbAggregators): void
{
$builder->add('order', ChoiceType::class, [
'choices' => array_combine(