Code Duplication    Length = 3-3 lines in 3 locations

Core/Executor/LoopExecutor.php 3 locations

@@ 41-43 (lines=3) @@
38
    {
39
        parent::execute($step);
40
41
        if (!isset($step->dsl['repeat']) && !isset($step->dsl['over'])) {
42
            throw new \Exception("Invalid step definition: missing 'repeat' or 'over'");
43
        }
44
45
        if (isset($step->dsl['repeat']) && isset($step->dsl['over'])) {
46
            throw new \Exception("Invalid step definition: can not have both 'repeat' and 'over'");
@@ 45-47 (lines=3) @@
42
            throw new \Exception("Invalid step definition: missing 'repeat' or 'over'");
43
        }
44
45
        if (isset($step->dsl['repeat']) && isset($step->dsl['over'])) {
46
            throw new \Exception("Invalid step definition: can not have both 'repeat' and 'over'");
47
        }
48
49
        if (isset($step->dsl['repeat']) && $step->dsl['repeat'] < 0) {
50
            throw new \Exception("Invalid step definition: 'repeat' is not a positive integer");
@@ 49-51 (lines=3) @@
46
            throw new \Exception("Invalid step definition: can not have both 'repeat' and 'over'");
47
        }
48
49
        if (isset($step->dsl['repeat']) && $step->dsl['repeat'] < 0) {
50
            throw new \Exception("Invalid step definition: 'repeat' is not a positive integer");
51
        }
52
53
        if (!isset($step->dsl['steps']) || !is_array($step->dsl['steps'])) {
54
            throw new \Exception("Invalid step definition: missing 'steps' or not an array");