Code Duplication    Length = 7-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 3295-3301 (lines=7) @@
3292
      return array();
3293
    }
3294
3295
    if (ctype_digit((string)$var1)) {
3296
      $start = (int)$var1;
3297
    } elseif (ctype_xdigit($var1)) {
3298
      $start = (int)self::hex_to_int($var1);
3299
    } else {
3300
      $start = self::ord($var1);
3301
    }
3302
3303
    if (!$start) {
3304
      return array();
@@ 3307-3313 (lines=7) @@
3304
      return array();
3305
    }
3306
3307
    if (ctype_digit((string)$var2)) {
3308
      $end = (int)$var2;
3309
    } elseif (ctype_xdigit($var2)) {
3310
      $end = (int)self::hex_to_int($var2);
3311
    } else {
3312
      $end = self::ord($var2);
3313
    }
3314
3315
    if (!$end) {
3316
      return array();