fix phpstan errors

This commit is contained in:
2021-11-12 17:50:12 +01:00
parent 52dc89c06f
commit 5651efe44d
4 changed files with 14 additions and 16 deletions

View File

@@ -1137,14 +1137,15 @@ class AccompanyingPeriod implements TrackCreationInterface, TrackUpdateInterface
public function getGroupSequence()
{
if($this->getStep() == self::STEP_DRAFT)
if ($this->getStep() == self::STEP_DRAFT)
{
return [[self::STEP_DRAFT]];
}
if($this->getStep() == self::STEP_CONFIRMED)
} elseif ($this->getStep() == self::STEP_CONFIRMED)
{
return [[self::STEP_DRAFT, self::STEP_CONFIRMED]];
}
throw new \LogicException("no validation group permitted with this step");
}
}