Code Duplication    Length = 7-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 3324-3330 (lines=7) @@
3321
      return array();
3322
    }
3323
3324
    if (ctype_digit((string)$var1)) {
3325
      $start = (int)$var1;
3326
    } elseif (ctype_xdigit($var1)) {
3327
      $start = (int)self::hex_to_int($var1);
3328
    } else {
3329
      $start = self::ord($var1);
3330
    }
3331
3332
    if (!$start) {
3333
      return array();
@@ 3336-3342 (lines=7) @@
3333
      return array();
3334
    }
3335
3336
    if (ctype_digit((string)$var2)) {
3337
      $end = (int)$var2;
3338
    } elseif (ctype_xdigit($var2)) {
3339
      $end = (int)self::hex_to_int($var2);
3340
    } else {
3341
      $end = self::ord($var2);
3342
    }
3343
3344
    if (!$end) {
3345
      return array();