getStep()->getNextSteps() as $nextStep) { if (isset($visitedNextStepIdsMap[$nextStep->getId()])) { throw Exceptions::automationStructureNotValid(__('Duplicate next step definition found', 'mailpoet'), self::RULE_ID); } $visitedNextStepIdsMap[$nextStep->getId()] = true; } } public function complete(Automation $automation): void { } }