Code Duplication    Length = 7-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

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