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:
1 parent
07773acb8d
commit
b138056e43
90 files changed
+622
-272
No files matched your search
@@ -104,4 +104,4 @@ class AudienceAttributes
|
||||
{
|
||||
return 'mt3s_marketing_program_audience_attribute_'.$attribute;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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',
|
||||
];
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user