Code Duplication    Length = 7-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 3547-3553 (lines=7) @@
3544
      return array();
3545
    }
3546
3547
    if (ctype_digit((string)$var1)) {
3548
      $start = (int)$var1;
3549
    } elseif (ctype_xdigit($var1)) {
3550
      $start = (int)self::hex_to_int($var1);
3551
    } else {
3552
      $start = self::ord($var1);
3553
    }
3554
3555
    if (!$start) {
3556
      return array();
@@ 3559-3565 (lines=7) @@
3556
      return array();
3557
    }
3558
3559
    if (ctype_digit((string)$var2)) {
3560
      $end = (int)$var2;
3561
    } elseif (ctype_xdigit($var2)) {
3562
      $end = (int)self::hex_to_int($var2);
3563
    } else {
3564
      $end = self::ord($var2);
3565
    }
3566
3567
    if (!$end) {
3568
      return array();