Code Duplication    Length = 7-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 3735-3741 (lines=7) @@
3732
      return array();
3733
    }
3734
3735
    if (ctype_digit((string)$var1)) {
3736
      $start = (int)$var1;
3737
    } elseif (ctype_xdigit($var1)) {
3738
      $start = (int)self::hex_to_int($var1);
3739
    } else {
3740
      $start = self::ord($var1);
3741
    }
3742
3743
    if (!$start) {
3744
      return array();
@@ 3747-3753 (lines=7) @@
3744
      return array();
3745
    }
3746
3747
    if (ctype_digit((string)$var2)) {
3748
      $end = (int)$var2;
3749
    } elseif (ctype_xdigit($var2)) {
3750
      $end = (int)self::hex_to_int($var2);
3751
    } else {
3752
      $end = self::ord($var2);
3753
    }
3754
3755
    if (!$end) {
3756
      return array();