Code Duplication    Length = 7-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 3926-3932 (lines=7) @@
3923
      return array();
3924
    }
3925
3926
    if (ctype_digit((string)$var1)) {
3927
      $start = (int)$var1;
3928
    } elseif (ctype_xdigit($var1)) {
3929
      $start = (int)self::hex_to_int($var1);
3930
    } else {
3931
      $start = self::ord($var1);
3932
    }
3933
3934
    if (!$start) {
3935
      return array();
@@ 3938-3944 (lines=7) @@
3935
      return array();
3936
    }
3937
3938
    if (ctype_digit((string)$var2)) {
3939
      $end = (int)$var2;
3940
    } elseif (ctype_xdigit($var2)) {
3941
      $end = (int)self::hex_to_int($var2);
3942
    } else {
3943
      $end = self::ord($var2);
3944
    }
3945
3946
    if (!$end) {
3947
      return array();