Code Duplication    Length = 7-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 3743-3749 (lines=7) @@
3740
      return array();
3741
    }
3742
3743
    if (ctype_digit((string)$var1)) {
3744
      $start = (int)$var1;
3745
    } elseif (ctype_xdigit($var1)) {
3746
      $start = (int)self::hex_to_int($var1);
3747
    } else {
3748
      $start = self::ord($var1);
3749
    }
3750
3751
    if (!$start) {
3752
      return array();
@@ 3755-3761 (lines=7) @@
3752
      return array();
3753
    }
3754
3755
    if (ctype_digit((string)$var2)) {
3756
      $end = (int)$var2;
3757
    } elseif (ctype_xdigit($var2)) {
3758
      $end = (int)self::hex_to_int($var2);
3759
    } else {
3760
      $end = self::ord($var2);
3761
    }
3762
3763
    if (!$end) {
3764
      return array();