Code Duplication    Length = 7-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 4244-4250 (lines=7) @@
4241
      return array();
4242
    }
4243
4244
    if (ctype_digit((string)$var1)) {
4245
      $start = (int)$var1;
4246
    } elseif (ctype_xdigit($var1)) {
4247
      $start = (int)self::hex_to_int($var1);
4248
    } else {
4249
      $start = self::ord($var1);
4250
    }
4251
4252
    if (!$start) {
4253
      return array();
@@ 4256-4262 (lines=7) @@
4253
      return array();
4254
    }
4255
4256
    if (ctype_digit((string)$var2)) {
4257
      $end = (int)$var2;
4258
    } elseif (ctype_xdigit($var2)) {
4259
      $end = (int)self::hex_to_int($var2);
4260
    } else {
4261
      $end = self::ord($var2);
4262
    }
4263
4264
    if (!$end) {
4265
      return array();