Code Duplication    Length = 7-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 3467-3473 (lines=7) @@
3464
      return array();
3465
    }
3466
3467
    if (ctype_digit((string)$var1)) {
3468
      $start = (int)$var1;
3469
    } elseif (ctype_xdigit($var1)) {
3470
      $start = (int)self::hex_to_int($var1);
3471
    } else {
3472
      $start = self::ord($var1);
3473
    }
3474
3475
    if (!$start) {
3476
      return array();
@@ 3479-3485 (lines=7) @@
3476
      return array();
3477
    }
3478
3479
    if (ctype_digit((string)$var2)) {
3480
      $end = (int)$var2;
3481
    } elseif (ctype_xdigit($var2)) {
3482
      $end = (int)self::hex_to_int($var2);
3483
    } else {
3484
      $end = self::ord($var2);
3485
    }
3486
3487
    if (!$end) {
3488
      return array();