Code Duplication    Length = 7-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 3609-3615 (lines=7) @@
3606
      return array();
3607
    }
3608
3609
    if (ctype_digit((string)$var1)) {
3610
      $start = (int)$var1;
3611
    } elseif (ctype_xdigit($var1)) {
3612
      $start = (int)self::hex_to_int($var1);
3613
    } else {
3614
      $start = self::ord($var1);
3615
    }
3616
3617
    if (!$start) {
3618
      return array();
@@ 3621-3627 (lines=7) @@
3618
      return array();
3619
    }
3620
3621
    if (ctype_digit((string)$var2)) {
3622
      $end = (int)$var2;
3623
    } elseif (ctype_xdigit($var2)) {
3624
      $end = (int)self::hex_to_int($var2);
3625
    } else {
3626
      $end = self::ord($var2);
3627
    }
3628
3629
    if (!$end) {
3630
      return array();