Code Duplication    Length = 7-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

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