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

+15 -15
View File
@@ -141,16 +141,16 @@ class Audience extends FormEntity
public function __construct()
{
$this->stages = new ArrayCollection();
$this->segments = new ArrayCollection();
$this->stages = new ArrayCollection();
$this->segments = new ArrayCollection();
$this->programLinks = new ArrayCollection();
}
public function __clone()
{
$this->id = null;
$this->stages = new ArrayCollection();
$this->segments = new ArrayCollection();
$this->id = null;
$this->stages = new ArrayCollection();
$this->segments = new ArrayCollection();
$this->programLinks = new ArrayCollection();
parent::__clone();
@@ -171,21 +171,21 @@ class Audience extends FormEntity
// Mapped on the raw metadata: ClassMetadataBuilder::addField() forces every string to VARCHAR(191).
$metadata->mapField([
'fieldName' => 'audienceType',
'fieldName' => 'audienceType',
'columnName' => 'audience_type',
'type' => Types::STRING,
'length' => 30,
'enumType' => AudienceType::class,
'options' => ['default' => AudienceType::Persona->value],
'type' => Types::STRING,
'length' => 30,
'enumType' => AudienceType::class,
'options' => ['default' => AudienceType::Persona->value],
]);
foreach ([
'tagline' => 'tagline',
'tagline' => 'tagline',
'profileCriteria' => 'profile_criteria',
'motivations' => 'motivations',
'barriers' => 'barriers',
'frustrations' => 'frustrations',
'triggers' => 'triggers',
'motivations' => 'motivations',
'barriers' => 'barriers',
'frustrations' => 'frustrations',
'triggers' => 'triggers',
] as $field => $column) {
$metadata->mapField([
'fieldName' => $field,