Code Duplication    Length = 7-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 4155-4161 (lines=7) @@
4152
      return array();
4153
    }
4154
4155
    if (ctype_digit((string)$var1)) {
4156
      $start = (int)$var1;
4157
    } elseif (ctype_xdigit($var1)) {
4158
      $start = (int)self::hex_to_int($var1);
4159
    } else {
4160
      $start = self::ord($var1);
4161
    }
4162
4163
    if (!$start) {
4164
      return array();
@@ 4167-4173 (lines=7) @@
4164
      return array();
4165
    }
4166
4167
    if (ctype_digit((string)$var2)) {
4168
      $end = (int)$var2;
4169
    } elseif (ctype_xdigit($var2)) {
4170
      $end = (int)self::hex_to_int($var2);
4171
    } else {
4172
      $end = self::ord($var2);
4173
    }
4174
4175
    if (!$end) {
4176
      return array();