Code Duplication    Length = 8-8 lines in 2 locations

src/Webhook/Domain/Infrastructure/Strategy/ExponentialStrategy.php 1 location

@@ 32-39 (lines=8) @@
29
    /**
30
     * @param int $interval
31
     */
32
    public function setInterval($interval)
33
    {
34
        if (!is_int($interval) || (int) $interval < 0) {
35
            throw new \InvalidArgumentException('Interval should be positive integer');
36
        }
37
38
        $this->interval = (int) $interval;
39
    }
40
41
    /**
42
     * @param $base

src/Webhook/Domain/Infrastructure/Strategy/LinearStrategy.php 1 location

@@ 31-38 (lines=8) @@
28
    /**
29
     * @param int $interval
30
     */
31
    public function setInterval($interval)
32
    {
33
        if (!is_int($interval) || (int) $interval < 0) {
34
            throw new \InvalidArgumentException('Interval should be positive integer');
35
        }
36
37
        $this->interval = (int) $interval;
38
    }
39
40
    /**
41
     * @param int $multiplier