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

+1 -1
View File
@@ -104,4 +104,4 @@ class AudienceAttributes
{
return 'mt3s_marketing_program_audience_attribute_'.$attribute;
}
}
}
+2 -2
View File
@@ -45,7 +45,7 @@ class ItemTypeInUseGuard
ItemTypeProvider::KIND_ALLOCATION => $this->allocationItemRepository->countByType(),
ItemTypeProvider::KIND_OBJECTIVE => $this->objectiveRepository->countByType(),
ItemTypeProvider::KIND_TASK => $this->taskRepository->countByType(),
ItemTypeProvider::KIND_STAKEHOLDER => $this->stakeholderRepository->countByType(),
ItemTypeProvider::KIND_STAKEHOLDER => $this->stakeholderRepository->countByType(),
];
$removedInUse = [];
@@ -76,4 +76,4 @@ class ItemTypeInUseGuard
return $removedInUse;
}
}
}
+10 -10
View File
@@ -34,11 +34,11 @@ use Symfony\Contracts\Translation\TranslatorInterface;
*/
class ItemTypeProvider
{
public const KIND_DESCRIPTION = 'description';
public const KIND_ALLOCATION = 'allocation';
public const KIND_OBJECTIVE = 'objective';
public const KIND_TASK = 'task';
public const KIND_STAKEHOLDER = 'stakeholder';
public const KIND_DESCRIPTION = 'description';
public const KIND_ALLOCATION = 'allocation';
public const KIND_OBJECTIVE = 'objective';
public const KIND_TASK = 'task';
public const KIND_STAKEHOLDER = 'stakeholder';
public const KIND_AUDIENCE_DECISION_ROLE = 'audience_decision_role';
public const KIND_AUDIENCE_TONE = 'audience_tone';
@@ -46,11 +46,11 @@ class ItemTypeProvider
* Kind => local.php parameter.
*/
public const PARAMETERS = [
self::KIND_DESCRIPTION => 'mt3s_marketing_program_description_item_types',
self::KIND_ALLOCATION => 'mt3s_marketing_program_allocation_item_types',
self::KIND_OBJECTIVE => 'mt3s_marketing_program_objective_types',
self::KIND_TASK => 'mt3s_marketing_program_task_types',
self::KIND_STAKEHOLDER => 'mt3s_marketing_program_stakeholder_types',
self::KIND_DESCRIPTION => 'mt3s_marketing_program_description_item_types',
self::KIND_ALLOCATION => 'mt3s_marketing_program_allocation_item_types',
self::KIND_OBJECTIVE => 'mt3s_marketing_program_objective_types',
self::KIND_TASK => 'mt3s_marketing_program_task_types',
self::KIND_STAKEHOLDER => 'mt3s_marketing_program_stakeholder_types',
self::KIND_AUDIENCE_DECISION_ROLE => 'mt3s_marketing_program_audience_decision_roles',
self::KIND_AUDIENCE_TONE => 'mt3s_marketing_program_audience_tones',
];
+2 -2
View File
@@ -65,7 +65,7 @@ final class UtmConfigurationNormalizer
*/
private function normalizeParameter(mixed $stored, ?UtmParameterDefinition $definition): array
{
$defaultMode = $definition?->defaultMode ?? UtmParameterMode::DISABLED;
$defaultMode = $definition->defaultMode ?? UtmParameterMode::DISABLED;
$allowedModes = $definition?->getAllowedModes() ?? UtmParameterMode::ALL;
if (!is_array($stored)) {
@@ -89,7 +89,7 @@ final class UtmConfigurationNormalizer
return $parameter;
}
$values = $this->normalizeValues($stored['values'] ?? []);
$values = $this->normalizeValues($stored['values'] ?? []);
$default = (string) ($stored['default'] ?? '');
$parameter['values'] = $values;
+2 -2
View File
@@ -127,9 +127,9 @@ final class UtmConfigurationProvider
}
return ['key' => $key] + $parameter + [
'group' => $definition?->group ?? UtmParameterCatalog::GROUP_CUSTOM,
'group' => $definition->group ?? UtmParameterCatalog::GROUP_CUSTOM,
'custom' => null === $definition,
'auto_generated' => $definition?->autoGenerated ?? false,
'auto_generated' => $definition->autoGenerated ?? false,
];
}
}