Code Duplication    Length = 7-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

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