Code Duplication    Length = 3-3 lines in 3 locations

Core/Executor/LoopExecutor.php 3 locations

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