Code Duplication    Length = 7-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 3305-3311 (lines=7) @@
3302
      return array();
3303
    }
3304
3305
    if (ctype_digit((string)$var1)) {
3306
      $start = (int)$var1;
3307
    } elseif (ctype_xdigit($var1)) {
3308
      $start = (int)self::hex_to_int($var1);
3309
    } else {
3310
      $start = self::ord($var1);
3311
    }
3312
3313
    if (!$start) {
3314
      return array();
@@ 3317-3323 (lines=7) @@
3314
      return array();
3315
    }
3316
3317
    if (ctype_digit((string)$var2)) {
3318
      $end = (int)$var2;
3319
    } elseif (ctype_xdigit($var2)) {
3320
      $end = (int)self::hex_to_int($var2);
3321
    } else {
3322
      $end = self::ord($var2);
3323
    }
3324
3325
    if (!$end) {
3326
      return array();