Code Duplication    Length = 5-5 lines in 2 locations

src/Service/IntervalManager.php 2 locations

@@ 39-43 (lines=5) @@
36
37
        yield (new Interval())->setUntil($from);
38
39
        while ($from < $max) {
40
            $until = min($from + $this->sizeForJobDistribution, $max);
41
            yield (new Interval())->setFrom($from)->setUntil($until);
42
            $from = $until;
43
        }
44
45
        yield (new Interval())->setFrom($max);
46
    }
@@ 63-67 (lines=5) @@
60
        }
61
62
        $from = $interval->getFrom();
63
        while ($from < $interval->getUntil()) {
64
            $until = min($from + $this->sizeForSeeking, $interval->getUntil());
65
            yield (new Interval())->setFrom($from)->setUntil($until);
66
            $from = $until;
67
        }
68
    }
69
}
70