Code Duplication    Length = 7-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 4093-4099 (lines=7) @@
4090
      return array();
4091
    }
4092
4093
    if (ctype_digit((string)$var1)) {
4094
      $start = (int)$var1;
4095
    } elseif (ctype_xdigit($var1)) {
4096
      $start = (int)self::hex_to_int($var1);
4097
    } else {
4098
      $start = self::ord($var1);
4099
    }
4100
4101
    if (!$start) {
4102
      return array();
@@ 4105-4111 (lines=7) @@
4102
      return array();
4103
    }
4104
4105
    if (ctype_digit((string)$var2)) {
4106
      $end = (int)$var2;
4107
    } elseif (ctype_xdigit($var2)) {
4108
      $end = (int)self::hex_to_int($var2);
4109
    } else {
4110
      $end = self::ord($var2);
4111
    }
4112
4113
    if (!$end) {
4114
      return array();