Code Duplication    Length = 7-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 3666-3672 (lines=7) @@
3663
      return array();
3664
    }
3665
3666
    if (ctype_digit((string)$var1)) {
3667
      $start = (int)$var1;
3668
    } elseif (ctype_xdigit($var1)) {
3669
      $start = (int)self::hex_to_int($var1);
3670
    } else {
3671
      $start = self::ord($var1);
3672
    }
3673
3674
    if (!$start) {
3675
      return array();
@@ 3678-3684 (lines=7) @@
3675
      return array();
3676
    }
3677
3678
    if (ctype_digit((string)$var2)) {
3679
      $end = (int)$var2;
3680
    } elseif (ctype_xdigit($var2)) {
3681
      $end = (int)self::hex_to_int($var2);
3682
    } else {
3683
      $end = self::ord($var2);
3684
    }
3685
3686
    if (!$end) {
3687
      return array();