Code Duplication    Length = 7-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 3619-3625 (lines=7) @@
3616
      return array();
3617
    }
3618
3619
    if (ctype_digit((string)$var1)) {
3620
      $start = (int)$var1;
3621
    } elseif (ctype_xdigit($var1)) {
3622
      $start = (int)self::hex_to_int($var1);
3623
    } else {
3624
      $start = self::ord($var1);
3625
    }
3626
3627
    if (!$start) {
3628
      return array();
@@ 3631-3637 (lines=7) @@
3628
      return array();
3629
    }
3630
3631
    if (ctype_digit((string)$var2)) {
3632
      $end = (int)$var2;
3633
    } elseif (ctype_xdigit($var2)) {
3634
      $end = (int)self::hex_to_int($var2);
3635
    } else {
3636
      $end = self::ord($var2);
3637
    }
3638
3639
    if (!$end) {
3640
      return array();