Code Duplication    Length = 4-4 lines in 2 locations

src/Cron.php 2 locations

@@ 315-318 (lines=4) @@
312
313
        // single value
314
        if (is_numeric($element)) {
315
            if (intval($element) < self::$boundaries[$index]['min'] ||
316
                intval($element) > self::$boundaries[$index]['max']) {
317
                throw new \Exception('value out of allowed range');
318
            }
319
320
            if ($stepping !== 1) {
321
                throw new \Exception('invalid combination of value and stepping notation');
@@ 382-385 (lines=4) @@
379
380
        foreach ($range as $value) {
381
            if (is_numeric($value)) {
382
                if (intval($value) < self::$boundaries[$index]['min'] ||
383
                    intval($value) > self::$boundaries[$index]['max']) {
384
                    throw new \Exception('invalid range start or end value');
385
                }
386
            } else {
387
                throw new \Exception('non-numeric range notation');
388
            }