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

@@ -26,7 +26,7 @@ final class SmartLinkValidatorTest extends TestCase
'parameters' => [
'utm_source' => [
'enabled' => '1', 'label' => 'Source', 'mode' => 'dropdown',
'values' => [
'values' => [
['value' => 'newsletter', 'label' => 'Newsletter'],
['value' => 'linkedin', 'label' => 'LinkedIn'],
],
@@ -35,6 +35,9 @@ final class SmartLinkValidatorTest extends TestCase
],
];
/**
* @param array<string, mixed> $raw
*/
private function createValidator(array $raw = self::RAW_CONFIG): SmartLinkValidator
{
$parameters = $this->createMock(CoreParametersHelper::class);
@@ -55,6 +58,9 @@ final class SmartLinkValidatorTest extends TestCase
return new SmartLinkValidator($this->createMock(SmartLinkModel::class), $provider);
}
/**
* @param array<string, mixed> $parameters
*/
private function createTaxonomy(array $parameters): UtmTaxonomy
{
$taxonomy = new UtmTaxonomy();
@@ -152,4 +158,4 @@ final class SmartLinkValidatorTest extends TestCase
$validator->validateUtmParameters(['utm_source' => 'facebook'])
);
}
}
}