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