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
@@ -13,7 +13,6 @@ use Symfony\Component\Validator\Constraint;
|
||||
*
|
||||
* The start-before-end rule itself is EndDateAfterStartDate, shared by plans and tasks.
|
||||
*/
|
||||
#[\Symfony\Component\Validator\Attribute\HasNamedArguments]
|
||||
class TaskDates extends Constraint
|
||||
{
|
||||
public const MILESTONE_END_ENSLAVED = 'mt3s.marketing_program.task.milestone.end_enslaved';
|
||||
@@ -22,4 +21,4 @@ class TaskDates extends Constraint
|
||||
{
|
||||
return self::CLASS_CONSTRAINT;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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))) {
|
||||
|
||||
Reference in new issue
Block a user