Code Duplication    Length = 7-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 3987-3993 (lines=7) @@
3984
      return array();
3985
    }
3986
3987
    if (ctype_digit((string)$var1)) {
3988
      $start = (int)$var1;
3989
    } elseif (ctype_xdigit($var1)) {
3990
      $start = (int)self::hex_to_int($var1);
3991
    } else {
3992
      $start = self::ord($var1);
3993
    }
3994
3995
    if (!$start) {
3996
      return array();
@@ 3999-4005 (lines=7) @@
3996
      return array();
3997
    }
3998
3999
    if (ctype_digit((string)$var2)) {
4000
      $end = (int)$var2;
4001
    } elseif (ctype_xdigit($var2)) {
4002
      $end = (int)self::hex_to_int($var2);
4003
    } else {
4004
      $end = self::ord($var2);
4005
    }
4006
4007
    if (!$end) {
4008
      return array();