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

@@ -171,15 +171,18 @@ final class UtmConfigurationProviderTest extends TestCase
);
}
/**
* @param array<string, mixed>|null $legacy
*/
private function createProvider(mixed $stored, ?array $legacy = null): UtmConfigurationProvider
{
$parameters = $this->createMock(CoreParametersHelper::class);
$parameters->method('get')
->willReturnCallback(
fn (string $name, mixed $default = null): mixed => match (true) {
UtmConfigurationProvider::CONFIG_PARAMETER === $name => $stored,
UtmConfigurationProvider::CONFIG_PARAMETER === $name => $stored,
UtmConfigurationProvider::LEGACY_CONFIG_PARAMETER === $name && null !== $legacy => $legacy,
default => $default,
default => $default,
}
);