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

+127
View File
@@ -0,0 +1,127 @@
parameters:
ignoreErrors:
-
message: '#^Property MauticPlugin\\MT3SMarketingProgramBundle\\Entity\\Audience\:\:\$id \(int\|null\) is never assigned int so it can be removed from the property type\.$#'
identifier: property.unusedType
count: 1
path: Entity/Audience.php
-
message: '#^Property MauticPlugin\\MT3SMarketingProgramBundle\\Entity\\Program\:\:\$id \(int\|null\) is never assigned int so it can be removed from the property type\.$#'
identifier: property.unusedType
count: 1
path: Entity/Program.php
-
message: '#^Property MauticPlugin\\MT3SMarketingProgramBundle\\Entity\\ProgramAllocationItem\:\:\$id \(int\|null\) is never assigned int so it can be removed from the property type\.$#'
identifier: property.unusedType
count: 1
path: Entity/ProgramAllocationItem.php
-
message: '#^Property MauticPlugin\\MT3SMarketingProgramBundle\\Entity\\ProgramAudience\:\:\$id \(int\|null\) is never assigned int so it can be removed from the property type\.$#'
identifier: property.unusedType
count: 1
path: Entity/ProgramAudience.php
-
message: '#^Property MauticPlugin\\MT3SMarketingProgramBundle\\Entity\\ProgramDescriptionItem\:\:\$id \(int\|null\) is never assigned int so it can be removed from the property type\.$#'
identifier: property.unusedType
count: 1
path: Entity/ProgramDescriptionItem.php
-
message: '#^Property MauticPlugin\\MT3SMarketingProgramBundle\\Entity\\ProgramObjective\:\:\$id \(int\|null\) is never assigned int so it can be removed from the property type\.$#'
identifier: property.unusedType
count: 1
path: Entity/ProgramObjective.php
-
message: '#^Property MauticPlugin\\MT3SMarketingProgramBundle\\Entity\\ProgramStakeholder\:\:\$id \(int\|null\) is never assigned int so it can be removed from the property type\.$#'
identifier: property.unusedType
count: 1
path: Entity/ProgramStakeholder.php
-
message: '#^Property MauticPlugin\\MT3SMarketingProgramBundle\\Entity\\SmartLink\:\:\$id \(int\|null\) is never assigned int so it can be removed from the property type\.$#'
identifier: property.unusedType
count: 1
path: Entity/SmartLink.php
-
message: '#^Property MauticPlugin\\MT3SMarketingProgramBundle\\Entity\\SmartLinkHit\:\:\$id \(int\|null\) is never assigned int so it can be removed from the property type\.$#'
identifier: property.unusedType
count: 1
path: Entity/SmartLinkHit.php
-
message: '#^Property MauticPlugin\\MT3SMarketingProgramBundle\\Entity\\Stakeholder\:\:\$id \(int\|null\) is never assigned int so it can be removed from the property type\.$#'
identifier: property.unusedType
count: 1
path: Entity/Stakeholder.php
-
message: '#^Property MauticPlugin\\MT3SMarketingProgramBundle\\Entity\\Task\:\:\$id \(int\|null\) is never assigned int so it can be removed from the property type\.$#'
identifier: property.unusedType
count: 1
path: Entity/Task.php
-
message: '#^Property MauticPlugin\\MT3SMarketingProgramBundle\\Entity\\TaskDependency\:\:\$id \(int\|null\) is never assigned int so it can be removed from the property type\.$#'
identifier: property.unusedType
count: 1
path: Entity/TaskDependency.php
-
message: '#^Property MauticPlugin\\MT3SMarketingProgramBundle\\Entity\\TaskRaci\:\:\$id \(int\|null\) is never assigned int so it can be removed from the property type\.$#'
identifier: property.unusedType
count: 1
path: Entity/TaskRaci.php
-
message: '#^Property MauticPlugin\\MT3SMarketingProgramBundle\\Entity\\UtmTaxonomy\:\:\$id \(int\|null\) is never assigned int so it can be removed from the property type\.$#'
identifier: property.unusedType
count: 1
path: Entity/UtmTaxonomy.php
-
message: '#^Method MauticPlugin\\MT3SMarketingProgramBundle\\Migrations\\Version_0_11_0\:\:hasForeignKeys\(\) is unused\.$#'
identifier: method.unused
count: 1
path: Migrations/Version_0_11_0.php
-
message: '#^Negated boolean expression is always true\.$#'
identifier: booleanNot.alwaysTrue
count: 1
path: Migrations/Version_0_11_0.php
-
message: '#^Class MauticPlugin\\MT3SMarketingProgramBundle\\Migrations\\InitiativeStakeholder not found\.$#'
identifier: class.notFound
count: 1
path: Migrations/Version_0_12_0.php
-
message: '#^Class MauticPlugin\\MT3SMarketingProgramBundle\\Migrations\\InitiativeDescriptionItem not found\.$#'
identifier: class.notFound
count: 1
path: Migrations/Version_0_6_0.php
-
message: '#^Class MauticPlugin\\MT3SMarketingProgramBundle\\Migrations\\InitiativeAllocationItem not found\.$#'
identifier: class.notFound
count: 1
path: Migrations/Version_0_7_0.php
-
message: '#^Return type \(MauticPlugin\\MT3SMarketingProgramBundle\\Entity\\AudienceRepository\) of method MauticPlugin\\MT3SMarketingProgramBundle\\Model\\AudienceModel\:\:getRepository\(\) should be compatible with return type \(Mautic\\CoreBundle\\Entity\\CommonRepository\<object\>\) of method Mautic\\CoreBundle\\Model\\AbstractCommonModel\<object\>\:\:getRepository\(\)$#'
identifier: method.childReturnType
count: 1
path: Model/AudienceModel.php
-
message: '#^Return type \(MauticPlugin\\MT3SMarketingProgramBundle\\Entity\\StakeholderRepository\) of method MauticPlugin\\MT3SMarketingProgramBundle\\Model\\StakeholderModel\:\:getRepository\(\) should be compatible with return type \(Mautic\\CoreBundle\\Entity\\CommonRepository\<object\>\) of method Mautic\\CoreBundle\\Model\\AbstractCommonModel\<object\>\:\:getRepository\(\)$#'
identifier: method.childReturnType
count: 1
path: Model/StakeholderModel.php