style: fix indentation, alignment, and docblock annotations

- Correct getChoices() docblock to reflect translated label => enum
  backing value order instead of value => label
- Re-indent Smart Links menu config to match actual array nesting
- Align assignment operators in RefreshStatsCommand
- Add missing newline at end of RefreshStatsCommand.php
This commit is contained in:
Alexandre Gain committed 2026-11-21 11:23:33 +01:00
1 parent 07773acb8d
commit b138056e43
90 files changed
+622 -272

No files matched your search

+10 -8
View File
@@ -105,12 +105,12 @@ class Program extends FormEntity implements DateRangeInterface
public function __construct()
{
$this->objectives = new ArrayCollection();
$this->descriptionItems = new ArrayCollection();
$this->allocationItems = new ArrayCollection();
$this->objectives = new ArrayCollection();
$this->descriptionItems = new ArrayCollection();
$this->allocationItems = new ArrayCollection();
$this->audiences = new ArrayCollection();
$this->stakeholders = new ArrayCollection();
$this->tasks = new ArrayCollection();
$this->stakeholders = new ArrayCollection();
$this->tasks = new ArrayCollection();
}
public function __clone()
@@ -163,8 +163,10 @@ class Program extends FormEntity implements DateRangeInterface
->setCustomRepositoryClass(ProgramRepository::class)
->addIndex(['status'], 'program_status');
// id and name; no description column (replaced by description items).
$builder->addIdColumns('name', false);
// id and name; no description column (replaced by description items). The false is
// core's own way to skip the column (addIdColumns checks it for truthiness); core's
// @param string docblock just doesn't mention it.
$builder->addIdColumns('name', false); // @phpstan-ignore argument.type (false is core's own way to skip the column; its @param string docblock doesn't mention it)
// Mapped on the raw metadata: ClassMetadataBuilder::addField() forces every string to VARCHAR(191).
$metadata->mapField([
@@ -468,7 +470,7 @@ class Program extends FormEntity implements DateRangeInterface
}
/**
* @template T of ProgramObjective|ProgramDescriptionItem|ProgramAllocationItem|Audience|ProgramStakeholder
* @template T of ProgramObjective|ProgramDescriptionItem|ProgramAllocationItem|ProgramAudience|ProgramStakeholder
*
* @param Collection<int, T> $collection
*