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

+4 -3
View File
@@ -5,11 +5,11 @@ declare(strict_types=1);
namespace MauticPlugin\MT3SMarketingProgramBundle\Twig;
use MauticPlugin\MT3SMarketingProgramBundle\Entity\Audience;
use MauticPlugin\MT3SMarketingProgramBundle\Entity\AudienceType;
use MauticPlugin\MT3SMarketingProgramBundle\Entity\AudienceRepository;
use MauticPlugin\MT3SMarketingProgramBundle\Entity\AudienceType;
use MauticPlugin\MT3SMarketingProgramBundle\Service\AudienceAttributes;
use MauticPlugin\MT3SMarketingProgramBundle\Service\CurrencyProvider;
use MauticPlugin\MT3SMarketingProgramBundle\Service\ItemTypeProvider;
use MauticPlugin\MT3SMarketingProgramBundle\Service\AudienceAttributes;
use Twig\Extension\AbstractExtension;
use Twig\TwigFilter;
use Twig\TwigFunction;
@@ -39,7 +39,6 @@ class MT3SMarketingProgramExtension extends AbstractExtension
public function __construct(
private ItemTypeProvider $typeProvider,
private CurrencyProvider $currencyProvider,
private AudienceAttributes $audienceAttributes,
private AudienceRepository $audienceRepository,
) {
}
@@ -79,6 +78,8 @@ class MT3SMarketingProgramExtension extends AbstractExtension
/**
* The pictogram of an audience type. Accepts the enum itself (what the form's and entity's value
* holds) or its backing value ('persona'); null defaults to Persona, the form's default.
*
* @param AudienceType|string|null $value
*/
private static function audienceTypeIcon($value): string
{