Code Duplication    Length = 5-5 lines in 2 locations

src/PlaygroundCore/Service/Cron.php 2 locations

@@ 535-539 (lines=5) @@
532
                    $expr
533
                ));
534
            }
535
            if (!is_numeric($arg[0])) {
536
                $from = self::exprToNumeric($arg[0]);
537
            } else {
538
                $from = $arg[0];
539
            }
540
            if (!is_numeric($arg[1])) {
541
                $to = self::exprToNumeric($arg[1]);
542
            } else {
@@ 540-544 (lines=5) @@
537
            } else {
538
                $from = $arg[0];
539
            }
540
            if (!is_numeric($arg[1])) {
541
                $to = self::exprToNumeric($arg[1]);
542
            } else {
543
                $to = $arg[1];
544
            }
545
        } //handle regular token
546
        else {
547
            $from = self::exprToNumeric($expr);