Code Duplication    Length = 7-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

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