Code Duplication    Length = 7-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 3505-3511 (lines=7) @@
3502
      return array();
3503
    }
3504
3505
    if (ctype_digit((string)$var1)) {
3506
      $start = (int)$var1;
3507
    } elseif (ctype_xdigit($var1)) {
3508
      $start = (int)self::hex_to_int($var1);
3509
    } else {
3510
      $start = self::ord($var1);
3511
    }
3512
3513
    if (!$start) {
3514
      return array();
@@ 3517-3523 (lines=7) @@
3514
      return array();
3515
    }
3516
3517
    if (ctype_digit((string)$var2)) {
3518
      $end = (int)$var2;
3519
    } elseif (ctype_xdigit($var2)) {
3520
      $end = (int)self::hex_to_int($var2);
3521
    } else {
3522
      $end = self::ord($var2);
3523
    }
3524
3525
    if (!$end) {
3526
      return array();