Code Duplication    Length = 7-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 3519-3525 (lines=7) @@
3516
      return array();
3517
    }
3518
3519
    if (ctype_digit((string)$var1)) {
3520
      $start = (int)$var1;
3521
    } elseif (ctype_xdigit($var1)) {
3522
      $start = (int)self::hex_to_int($var1);
3523
    } else {
3524
      $start = self::ord($var1);
3525
    }
3526
3527
    if (!$start) {
3528
      return array();
@@ 3531-3537 (lines=7) @@
3528
      return array();
3529
    }
3530
3531
    if (ctype_digit((string)$var2)) {
3532
      $end = (int)$var2;
3533
    } elseif (ctype_xdigit($var2)) {
3534
      $end = (int)self::hex_to_int($var2);
3535
    } else {
3536
      $end = self::ord($var2);
3537
    }
3538
3539
    if (!$end) {
3540
      return array();