Code Duplication    Length = 6-6 lines in 2 locations

Registry/ActionsRegistry.php 1 location

@@ 60-65 (lines=6) @@
57
        if ($action instanceof \Closure) {
58
            // Lazy loading
59
            $action = $this->actions[$manager][$stepName]();
60
            if (!$action instanceof StepActionInterface) {
61
                throw new \RuntimeException(\sprintf(
62
                    "Lazy-loaded action \"%s\" for character manager \"%s\" must be resolved to an instance of \"%s\".\n\"%s\" given.",
63
                    $stepName,
64
                    $manager,
65
                    StepActionInterface::class,
66
                    \is_object($action) ? \get_class($action) : \gettype($action)
67
                ));
68
            }

Action/AbstractStepAction.php 1 location

@@ 249-254 (lines=6) @@
246
    private function setSteps(array $steps): void
247
    {
248
        foreach ($steps as $step) {
249
            if (!$step instanceof StepInterface) {
250
                throw new \InvalidArgumentException(\sprintf(
251
                    'Expected %s instance, "%s" given.',
252
                    StepActionInterface::class,
253
                    \is_object($step) ? \get_class($step) : \gettype($step)
254
                ));
255
            }
256
        }
257