Code Duplication    Length = 7-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 3919-3925 (lines=7) @@
3916
      return array();
3917
    }
3918
3919
    if (ctype_digit((string)$var1)) {
3920
      $start = (int)$var1;
3921
    } elseif (ctype_xdigit($var1)) {
3922
      $start = (int)self::hex_to_int($var1);
3923
    } else {
3924
      $start = self::ord($var1);
3925
    }
3926
3927
    if (!$start) {
3928
      return array();
@@ 3931-3937 (lines=7) @@
3928
      return array();
3929
    }
3930
3931
    if (ctype_digit((string)$var2)) {
3932
      $end = (int)$var2;
3933
    } elseif (ctype_xdigit($var2)) {
3934
      $end = (int)self::hex_to_int($var2);
3935
    } else {
3936
      $end = self::ord($var2);
3937
    }
3938
3939
    if (!$end) {
3940
      return array();