mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2026-02-27 18:49:41 +00:00
Rector changes and immplementations of required methods
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user