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

@@ -27,7 +27,7 @@ class ValidTaskDependencyValidator extends ConstraintValidator
*/
public function validate($task, Constraint $constraint): void
{
if (!$task instanceof Task) {
if (!$task instanceof Task || !$constraint instanceof ValidTaskDependency) {
return;
}
@@ -36,7 +36,7 @@ class ValidTaskDependencyValidator extends ConstraintValidator
}
}
private function validateEdge(Task $task, TaskDependency $dependency, Constraint $constraint): void
private function validateEdge(Task $task, TaskDependency $dependency, ValidTaskDependency $constraint): void
{
$dependsOn = $dependency->getDependsOn();
@@ -57,7 +57,7 @@ class ValidTaskDependencyValidator extends ConstraintValidator
}
// Cycle check: walk the edges from the depends-on task; if we come back to this task, it's a cycle.
$seen = [];
$seen = [];
$queue = [$dependsOn];
while (null !== ($current = array_shift($queue))) {