Code Duplication    Length = 7-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 4124-4130 (lines=7) @@
4121
      return array();
4122
    }
4123
4124
    if (ctype_digit((string)$var1)) {
4125
      $start = (int)$var1;
4126
    } elseif (ctype_xdigit($var1)) {
4127
      $start = (int)self::hex_to_int($var1);
4128
    } else {
4129
      $start = self::ord($var1);
4130
    }
4131
4132
    if (!$start) {
4133
      return array();
@@ 4136-4142 (lines=7) @@
4133
      return array();
4134
    }
4135
4136
    if (ctype_digit((string)$var2)) {
4137
      $end = (int)$var2;
4138
    } elseif (ctype_xdigit($var2)) {
4139
      $end = (int)self::hex_to_int($var2);
4140
    } else {
4141
      $end = self::ord($var2);
4142
    }
4143
4144
    if (!$end) {
4145
      return array();