Code Duplication    Length = 7-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

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